mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
17 lines
682 B
Plaintext
17 lines
682 B
Plaintext
//// [tests/cases/compiler/arrowFunctionMissingCurlyWithSemicolon.ts] ////
|
|
|
|
=== arrowFunctionMissingCurlyWithSemicolon.ts ===
|
|
// Should error at semicolon.
|
|
var f = () => ;
|
|
>f : Symbol(f, Decl(arrowFunctionMissingCurlyWithSemicolon.ts, 1, 3))
|
|
|
|
var b = 1 * 2 * 3 * 4;
|
|
>b : Symbol(b, Decl(arrowFunctionMissingCurlyWithSemicolon.ts, 2, 3))
|
|
|
|
var square = (x: number) => x * x;
|
|
>square : Symbol(square, Decl(arrowFunctionMissingCurlyWithSemicolon.ts, 3, 3))
|
|
>x : Symbol(x, Decl(arrowFunctionMissingCurlyWithSemicolon.ts, 3, 14))
|
|
>x : Symbol(x, Decl(arrowFunctionMissingCurlyWithSemicolon.ts, 3, 14))
|
|
>x : Symbol(x, Decl(arrowFunctionMissingCurlyWithSemicolon.ts, 3, 14))
|
|
|