51 lines
1.5 KiB
Text
51 lines
1.5 KiB
Text
=== tests/cases/compiler/noCollisionThisExpressionAndLocalVarInProperty.ts ===
|
|
class class1 {
|
|
>class1 : class1
|
|
|
|
public prop1 = {
|
|
>prop1 : { doStuff: (callback: any) => () => any; }
|
|
>{ doStuff: (callback) => () => { var _this = 2; return callback(_this); } } : { doStuff: (callback: any) => () => any; }
|
|
|
|
doStuff: (callback) => () => {
|
|
>doStuff : (callback: any) => () => any
|
|
>(callback) => () => { var _this = 2; return callback(_this); } : (callback: any) => () => any
|
|
>callback : any
|
|
>() => { var _this = 2; return callback(_this); } : () => any
|
|
|
|
var _this = 2;
|
|
>_this : number
|
|
>2 : number
|
|
|
|
return callback(_this);
|
|
>callback(_this) : any
|
|
>callback : any
|
|
>_this : number
|
|
}
|
|
}
|
|
}
|
|
|
|
class class2 {
|
|
>class2 : class2
|
|
|
|
constructor() {
|
|
var _this = 2;
|
|
>_this : number
|
|
>2 : number
|
|
}
|
|
public prop1 = {
|
|
>prop1 : { doStuff: (callback: any) => () => any; }
|
|
>{ doStuff: (callback) => () => { return callback(10); } } : { doStuff: (callback: any) => () => any; }
|
|
|
|
doStuff: (callback) => () => {
|
|
>doStuff : (callback: any) => () => any
|
|
>(callback) => () => { return callback(10); } : (callback: any) => () => any
|
|
>callback : any
|
|
>() => { return callback(10); } : () => any
|
|
|
|
return callback(10);
|
|
>callback(10) : any
|
|
>callback : any
|
|
>10 : number
|
|
}
|
|
}
|
|
}
|