29 lines
1.5 KiB
Text
29 lines
1.5 KiB
Text
=== tests/cases/compiler/noCollisionThisExpressionAndLocalVarInLambda.ts ===
|
|
declare function alert(message?: any): void;
|
|
>alert : Symbol(alert, Decl(noCollisionThisExpressionAndLocalVarInLambda.ts, 0, 0))
|
|
>message : Symbol(message, Decl(noCollisionThisExpressionAndLocalVarInLambda.ts, 0, 23))
|
|
|
|
var x = {
|
|
>x : Symbol(x, Decl(noCollisionThisExpressionAndLocalVarInLambda.ts, 1, 3))
|
|
|
|
doStuff: (callback) => () => {
|
|
>doStuff : Symbol(doStuff, Decl(noCollisionThisExpressionAndLocalVarInLambda.ts, 1, 9))
|
|
>callback : Symbol(callback, Decl(noCollisionThisExpressionAndLocalVarInLambda.ts, 2, 14))
|
|
|
|
var _this = 2;
|
|
>_this : Symbol(_this, Decl(noCollisionThisExpressionAndLocalVarInLambda.ts, 3, 11))
|
|
|
|
return callback(_this);
|
|
>callback : Symbol(callback, Decl(noCollisionThisExpressionAndLocalVarInLambda.ts, 2, 14))
|
|
>_this : Symbol(_this, Decl(noCollisionThisExpressionAndLocalVarInLambda.ts, 3, 11))
|
|
}
|
|
}
|
|
alert(x.doStuff(x => alert(x)));
|
|
>alert : Symbol(alert, Decl(noCollisionThisExpressionAndLocalVarInLambda.ts, 0, 0))
|
|
>x.doStuff : Symbol(doStuff, Decl(noCollisionThisExpressionAndLocalVarInLambda.ts, 1, 9))
|
|
>x : Symbol(x, Decl(noCollisionThisExpressionAndLocalVarInLambda.ts, 1, 3))
|
|
>doStuff : Symbol(doStuff, Decl(noCollisionThisExpressionAndLocalVarInLambda.ts, 1, 9))
|
|
>x : Symbol(x, Decl(noCollisionThisExpressionAndLocalVarInLambda.ts, 7, 16))
|
|
>alert : Symbol(alert, Decl(noCollisionThisExpressionAndLocalVarInLambda.ts, 0, 0))
|
|
>x : Symbol(x, Decl(noCollisionThisExpressionAndLocalVarInLambda.ts, 7, 16))
|
|
|