TypeScript/tests/cases/compiler/arrowFunctionMissingCurlyWithSemicolon.ts
Daniel Rosenwasser 819ea95953 Better error recovery for when an arrow function is missing a curly brace.
Also better identification of arrow function expressions.
2014-07-18 16:55:18 -07:00

4 lines
106 B
TypeScript

// Should error at semicolon.
var f = () => ;
var b = 1 * 2 * 3 * 4;
var square = (x: number) => x * x;