2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/noCollisionThisExpressionAndLocalVarInFunction.ts ===
|
|
|
|
var console: {
|
2015-04-16 01:44:20 +02:00
|
|
|
>console : { log(val: any): any; }
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
log(val: any);
|
2015-04-16 01:44:20 +02:00
|
|
|
>log : (val: any) => any
|
|
|
|
>val : any
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
function x() {
|
2015-04-16 01:44:20 +02:00
|
|
|
>x : () => void
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var _this = 5;
|
2015-04-16 01:44:20 +02:00
|
|
|
>_this : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>5 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
x => { console.log(_this); };
|
|
|
|
>x => { console.log(_this); } : (x: any) => void
|
2015-04-16 01:44:20 +02:00
|
|
|
>x : any
|
2014-08-15 23:33:16 +02:00
|
|
|
>console.log(_this) : any
|
2015-04-16 01:44:20 +02:00
|
|
|
>console.log : (val: any) => any
|
|
|
|
>console : { log(val: any): any; }
|
|
|
|
>log : (val: any) => any
|
|
|
|
>_this : number
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|