mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
25 lines
645 B
Plaintext
25 lines
645 B
Plaintext
//// [tests/cases/compiler/fixCrashAliasLookupForDefauledImport.ts] ////
|
|
|
|
=== input.ts ===
|
|
export type Foo<T = string> = {};
|
|
>Foo : Symbol(Foo, Decl(input.ts, 0, 0))
|
|
>T : Symbol(T, Decl(input.ts, 0, 16))
|
|
|
|
=== usage.ts ===
|
|
import {Foo} from "./input";
|
|
>Foo : Symbol(Foo, Decl(usage.ts, 0, 8))
|
|
|
|
function bar<T>(element: Foo) {
|
|
>bar : Symbol(bar, Decl(usage.ts, 0, 28))
|
|
>T : Symbol(T, Decl(usage.ts, 2, 13))
|
|
>element : Symbol(element, Decl(usage.ts, 2, 16))
|
|
>Foo : Symbol(Foo, Decl(usage.ts, 0, 8))
|
|
|
|
return 1;
|
|
}
|
|
|
|
bar(1 as Foo<number>);
|
|
>bar : Symbol(bar, Decl(usage.ts, 0, 28))
|
|
>Foo : Symbol(Foo, Decl(usage.ts, 0, 8))
|
|
|