1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
=== tests/cases/compiler/collisionSuperAndPropertyNameAsConstuctorParameter.ts ===
class a {
>a : Symbol(a, Decl(collisionSuperAndPropertyNameAsConstuctorParameter.ts, 0, 0))
}
class b1 extends a {
>b1 : Symbol(b1, Decl(collisionSuperAndPropertyNameAsConstuctorParameter.ts, 1, 1))
>a : Symbol(a, Decl(collisionSuperAndPropertyNameAsConstuctorParameter.ts, 0, 0))
constructor(_super: number) { // should be error
>_super : Symbol(_super, Decl(collisionSuperAndPropertyNameAsConstuctorParameter.ts, 4, 16))
super();
>super : Symbol(a, Decl(collisionSuperAndPropertyNameAsConstuctorParameter.ts, 0, 0))
}
}
class b2 extends a {
>b2 : Symbol(b2, Decl(collisionSuperAndPropertyNameAsConstuctorParameter.ts, 7, 1))
>a : Symbol(a, Decl(collisionSuperAndPropertyNameAsConstuctorParameter.ts, 0, 0))
constructor(private _super: number) { // should be error
>_super : Symbol(b2._super, Decl(collisionSuperAndPropertyNameAsConstuctorParameter.ts, 10, 16))
super();
>super : Symbol(a, Decl(collisionSuperAndPropertyNameAsConstuctorParameter.ts, 0, 0))
}
}
class b3 extends a {
>b3 : Symbol(b3, Decl(collisionSuperAndPropertyNameAsConstuctorParameter.ts, 13, 1))
>a : Symbol(a, Decl(collisionSuperAndPropertyNameAsConstuctorParameter.ts, 0, 0))
constructor(_super: number); // no code gen - no error
>_super : Symbol(_super, Decl(collisionSuperAndPropertyNameAsConstuctorParameter.ts, 16, 16))
constructor(_super: string);// no code gen - no error
>_super : Symbol(_super, Decl(collisionSuperAndPropertyNameAsConstuctorParameter.ts, 17, 16))
constructor(_super: any) { // should be error
>_super : Symbol(_super, Decl(collisionSuperAndPropertyNameAsConstuctorParameter.ts, 18, 16))
super();
>super : Symbol(a, Decl(collisionSuperAndPropertyNameAsConstuctorParameter.ts, 0, 0))
}
}
class b4 extends a {
>b4 : Symbol(b4, Decl(collisionSuperAndPropertyNameAsConstuctorParameter.ts, 21, 1))
>a : Symbol(a, Decl(collisionSuperAndPropertyNameAsConstuctorParameter.ts, 0, 0))
constructor(_super: number); // no code gen - no error
>_super : Symbol(_super, Decl(collisionSuperAndPropertyNameAsConstuctorParameter.ts, 24, 16))
constructor(_super: string);// no code gen - no error
>_super : Symbol(_super, Decl(collisionSuperAndPropertyNameAsConstuctorParameter.ts, 25, 16))
constructor(private _super: any) { // should be error
>_super : Symbol(b4._super, Decl(collisionSuperAndPropertyNameAsConstuctorParameter.ts, 26, 16))
super();
>super : Symbol(a, Decl(collisionSuperAndPropertyNameAsConstuctorParameter.ts, 0, 0))
}
}
|