mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
//// [tests/cases/compiler/collisionSuperAndNameResolution.ts] ////
|
|
|
|
=== collisionSuperAndNameResolution.ts ===
|
|
var console: {
|
|
>console : Symbol(console, Decl(collisionSuperAndNameResolution.ts, 0, 3))
|
|
|
|
log(message: any);
|
|
>log : Symbol(log, Decl(collisionSuperAndNameResolution.ts, 0, 14))
|
|
>message : Symbol(message, Decl(collisionSuperAndNameResolution.ts, 1, 8))
|
|
}
|
|
var _super = 10; // No error
|
|
>_super : Symbol(_super, Decl(collisionSuperAndNameResolution.ts, 3, 3))
|
|
|
|
class base {
|
|
>base : Symbol(base, Decl(collisionSuperAndNameResolution.ts, 3, 16))
|
|
}
|
|
class Foo extends base {
|
|
>Foo : Symbol(Foo, Decl(collisionSuperAndNameResolution.ts, 5, 1))
|
|
>base : Symbol(base, Decl(collisionSuperAndNameResolution.ts, 3, 16))
|
|
|
|
x() {
|
|
>x : Symbol(Foo.x, Decl(collisionSuperAndNameResolution.ts, 6, 24))
|
|
|
|
console.log(_super); // Error as this doesnt not resolve to user defined _super
|
|
>console.log : Symbol(log, Decl(collisionSuperAndNameResolution.ts, 0, 14))
|
|
>console : Symbol(console, Decl(collisionSuperAndNameResolution.ts, 0, 3))
|
|
>log : Symbol(log, Decl(collisionSuperAndNameResolution.ts, 0, 14))
|
|
>_super : Symbol(_super, Decl(collisionSuperAndNameResolution.ts, 3, 3))
|
|
}
|
|
}
|