mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
17 lines
387 B
Plaintext
17 lines
387 B
Plaintext
//// [tests/cases/compiler/defaultIsNotVisibleInLocalScope.ts] ////
|
|
|
|
=== a.ts ===
|
|
export default function () {
|
|
return true;
|
|
}
|
|
export type X = typeof default; // expect error
|
|
>X : Symbol(X, Decl(a.ts, 2, 1))
|
|
|
|
=== b.ts ===
|
|
export default { a: true }
|
|
>a : Symbol(a, Decl(b.ts, 0, 16))
|
|
|
|
export type X = typeof default; // expect error
|
|
>X : Symbol(X, Decl(b.ts, 0, 26))
|
|
|