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…
Reference in a new issue