mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
18 lines
394 B
Plaintext
18 lines
394 B
Plaintext
//// [tests/cases/conformance/expressions/asOperator/asOperator4.ts] ////
|
|
|
|
=== foo.ts ===
|
|
export function foo() { }
|
|
>foo : Symbol(foo, Decl(foo.ts, 0, 0))
|
|
|
|
=== bar.ts ===
|
|
import { foo } from './foo';
|
|
>foo : Symbol(foo, Decl(bar.ts, 0, 8))
|
|
|
|
// These should emit identically
|
|
<any>foo;
|
|
>foo : Symbol(foo, Decl(bar.ts, 0, 8))
|
|
|
|
(foo as any);
|
|
>foo : Symbol(foo, Decl(bar.ts, 0, 8))
|
|
|