mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
28 lines
1.2 KiB
Diff
28 lines
1.2 KiB
Diff
--- old.importEquals3.errors.txt
|
|
+++ new.importEquals3.errors.txt
|
|
@@= skipped -0, +0 lines =@@
|
|
b.ts(2,12): error TS1380: An import alias cannot reference a declaration that was imported using 'import type'.
|
|
b.ts(3,13): error TS1380: An import alias cannot reference a declaration that was imported using 'import type'.
|
|
c.ts(2,12): error TS1380: An import alias cannot reference a declaration that was imported using 'import type'.
|
|
-c.ts(3,13): error TS1380: An import alias cannot reference a declaration that was imported using 'import type'.
|
|
|
|
|
|
==== a.ts (0 errors) ====
|
|
@@= skipped -20, +19 lines =@@
|
|
const x = 0;
|
|
export { a, A, x };
|
|
|
|
-==== c.ts (2 errors) ====
|
|
+==== c.ts (1 errors) ====
|
|
import * as b from './b';
|
|
import A = b.a.A; // Error
|
|
~~~~~
|
|
!!! error TS1380: An import alias cannot reference a declaration that was imported using 'import type'.
|
|
!!! related TS1376 b.ts:1:18: 'a' was imported here.
|
|
import AA = b.A; // Error
|
|
- ~~~
|
|
-!!! error TS1380: An import alias cannot reference a declaration that was imported using 'import type'.
|
|
-!!! related TS1376 b.ts:1:18: 'a' was imported here.
|
|
|
|
import x = b.x;
|
|
console.log(x);
|