mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
57 lines
1.4 KiB
Plaintext
57 lines
1.4 KiB
Plaintext
//// [tests/cases/conformance/externalModules/typeOnly/importEquals1.ts] ////
|
|
|
|
=== /a.ts ===
|
|
export class A {}
|
|
>A : Symbol(A, Decl(a.ts, 0, 0))
|
|
|
|
=== /b.ts ===
|
|
import type * as types from './a';
|
|
>types : Symbol(types, Decl(b.ts, 0, 11))
|
|
|
|
export = types; // Error
|
|
>types : Symbol(types, Decl(b.ts, 0, 11))
|
|
|
|
=== /c.ts ===
|
|
import * as types from './a';
|
|
>types : Symbol(types, Decl(c.ts, 0, 6))
|
|
|
|
export = types;
|
|
>types : Symbol(types, Decl(c.ts, 0, 6))
|
|
|
|
=== /d.ts ===
|
|
import types from './b';
|
|
>types : Symbol(types, Decl(d.ts, 0, 6))
|
|
|
|
new types.A(); // Error
|
|
>types.A : Symbol(types.A, Decl(a.ts, 0, 0))
|
|
>types : Symbol(types, Decl(d.ts, 0, 6))
|
|
>A : Symbol(types.A, Decl(a.ts, 0, 0))
|
|
|
|
=== /e.ts ===
|
|
import types = require('./b');
|
|
>types : Symbol(types, Decl(e.ts, 0, 0))
|
|
|
|
new types.A(); // Error
|
|
>types.A : Symbol(types.A, Decl(a.ts, 0, 0))
|
|
>types : Symbol(types, Decl(e.ts, 0, 0))
|
|
>A : Symbol(types.A, Decl(a.ts, 0, 0))
|
|
|
|
=== /f.ts ===
|
|
import * as types from './b';
|
|
>types : Symbol(types, Decl(f.ts, 0, 6))
|
|
|
|
new types.A(); // Error
|
|
>types.A : Symbol(types.A, Decl(a.ts, 0, 0))
|
|
>types : Symbol(types, Decl(f.ts, 0, 6))
|
|
>A : Symbol(types.A, Decl(a.ts, 0, 0))
|
|
|
|
=== /g.ts ===
|
|
import type types from './c'
|
|
>types : Symbol(types, Decl(g.ts, 0, 6))
|
|
|
|
new types.A(); // Error
|
|
>types.A : Symbol(types.A, Decl(a.ts, 0, 0))
|
|
>types : Symbol(types, Decl(g.ts, 0, 6))
|
|
>A : Symbol(types.A, Decl(a.ts, 0, 0))
|
|
|