11 lines
319 B
TypeScript
11 lines
319 B
TypeScript
//// [arrowFunctionMissingCurlyWithSemicolon.ts]
|
|
// Should error at semicolon.
|
|
var f = () => ;
|
|
var b = 1 * 2 * 3 * 4;
|
|
var square = (x: number) => x * x;
|
|
|
|
//// [arrowFunctionMissingCurlyWithSemicolon.js]
|
|
// Should error at semicolon.
|
|
var f = ;
|
|
var b = 1 * 2 * 3 * 4;
|
|
var square = function (x) { return x * x; };
|