19 lines
386 B
Text
19 lines
386 B
Text
=== tests/cases/conformance/expressions/asOperator/foo.ts ===
|
|
|
|
export function foo() { }
|
|
>foo : () => void
|
|
|
|
=== tests/cases/conformance/expressions/asOperator/bar.ts ===
|
|
import { foo } from './foo';
|
|
>foo : () => void
|
|
|
|
// These should emit identically
|
|
<any>foo;
|
|
><any>foo : any
|
|
>foo : () => void
|
|
|
|
(foo as any);
|
|
>(foo as any) : any
|
|
>foo as any : any
|
|
>foo : () => void
|
|
|