mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-10 10:58:20 -05:00
@@ -0,0 +1,5 @@
|
||||
//// [castFunctionExpressionShouldBeParenthesized.ts]
|
||||
(function a() { } as any)().foo()
|
||||
|
||||
//// [castFunctionExpressionShouldBeParenthesized.js]
|
||||
(function a() { }().foo());
|
||||
@@ -0,0 +1,4 @@
|
||||
=== tests/cases/compiler/castFunctionExpressionShouldBeParenthesized.ts ===
|
||||
(function a() { } as any)().foo()
|
||||
>a : Symbol(a, Decl(castFunctionExpressionShouldBeParenthesized.ts, 0, 1))
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
=== tests/cases/compiler/castFunctionExpressionShouldBeParenthesized.ts ===
|
||||
(function a() { } as any)().foo()
|
||||
>(function a() { } as any)().foo() : any
|
||||
>(function a() { } as any)().foo : any
|
||||
>(function a() { } as any)() : any
|
||||
>(function a() { } as any) : any
|
||||
>function a() { } as any : any
|
||||
>function a() { } : () => void
|
||||
>a : () => void
|
||||
>foo : any
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
(function a() { } as any)().foo()
|
||||
Reference in New Issue
Block a user