mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 08:11:30 -06:00
parent
d7269f1386
commit
856961b84c
@ -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()
|
||||
Loading…
x
Reference in New Issue
Block a user