mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
15 lines
400 B
TypeScript
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;
|