mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
32 lines
1.0 KiB
Diff
32 lines
1.0 KiB
Diff
--- old.declarationFileNoCrashOnExtraExportModifier.errors.txt
|
|
+++ new.declarationFileNoCrashOnExtraExportModifier.errors.txt
|
|
@@= skipped -0, +0 lines =@@
|
|
input.ts(1,1): error TS2309: An export assignment cannot be used in a module with other exported elements.
|
|
-input.ts(6,14): error TS2300: Duplicate identifier 'Sub'.
|
|
-input.ts(12,14): error TS2300: Duplicate identifier 'Sub'.
|
|
-
|
|
-
|
|
-==== input.ts (3 errors) ====
|
|
+
|
|
+
|
|
+==== input.ts (1 errors) ====
|
|
export = exports;
|
|
~~~~~~~~~~~~~~~~~
|
|
!!! error TS2309: An export assignment cannot be used in a module with other exported elements.
|
|
@@= skipped -11, +9 lines =@@
|
|
t: number;
|
|
}
|
|
export class Sub {
|
|
- ~~~
|
|
-!!! error TS2300: Duplicate identifier 'Sub'.
|
|
-!!! related TS6203 input.ts:12:14: 'Sub' was also declared here.
|
|
instance!: {
|
|
t: number;
|
|
};
|
|
}
|
|
declare namespace exports {
|
|
export { Sub };
|
|
- ~~~
|
|
-!!! error TS2300: Duplicate identifier 'Sub'.
|
|
-!!! related TS6203 input.ts:6:14: 'Sub' was also declared here.
|
|
}
|