=== 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

