Files
tsgo/testdata/baselines/reference/submodule/compiler/arrowFunctionMissingCurlyWithSemicolon.js

15 lines
400 B
TypeScript

//// [tests/cases/compiler/arrowFunctionMissingCurlyWithSemicolon.ts] ////
//// [arrowFunctionMissingCurlyWithSemicolon.ts]
// Should error at semicolon.
var f = () => ;
var b = 1 * 2 * 3 * 4;
var square = (x: number) => x * x;
//// [arrowFunctionMissingCurlyWithSemicolon.js]
"use strict";
// Should error at semicolon.
var f = () => ;
var b = 1 * 2 * 3 * 4;
var square = (x) => x * x;