2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/arrowFunctionMissingCurlyWithSemicolon.ts(2,15): error TS1109: Expression expected.
|
|
|
|
|
|
|
|
|
2014-07-16 02:21:43 +02:00
|
|
|
==== tests/cases/compiler/arrowFunctionMissingCurlyWithSemicolon.ts (1 errors) ====
|
|
|
|
// Should error at semicolon.
|
|
|
|
var f = () => ;
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1109: Expression expected.
|
2014-07-16 02:21:43 +02:00
|
|
|
var b = 1 * 2 * 3 * 4;
|
|
|
|
var square = (x: number) => x * x;
|