2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/lambdaExpression.ts ===
|
|
|
|
() => 0; // Needs to be wrapped in parens to be a valid expression (not declaration)
|
|
|
|
>() => 0 : () => number
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var y = 0;
|
2015-04-13 22:54:22 +02:00
|
|
|
>y : number, Symbol(y,Decl(lambdaExpression.ts,1,3))
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
(()=>0);
|
|
|
|
>(()=>0) : () => number
|
|
|
|
>()=>0 : () => number
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var x = 0;
|
2015-04-13 22:54:22 +02:00
|
|
|
>x : number, Symbol(x,Decl(lambdaExpression.ts,3,3))
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|