mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
37 lines
1.5 KiB
Plaintext
37 lines
1.5 KiB
Plaintext
ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.ts(4,12): error TS2300: Duplicate identifier 'Origin'.
|
|
ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.ts(8,16): error TS2300: Duplicate identifier 'Origin'.
|
|
ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.ts(16,16): error TS2300: Duplicate identifier 'Origin'.
|
|
ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.ts(20,20): error TS2300: Duplicate identifier 'Origin'.
|
|
|
|
|
|
==== ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.ts (4 errors) ====
|
|
class Point {
|
|
constructor(public x: number, public y: number) { }
|
|
|
|
static Origin: Point = { x: 0, y: 0 };
|
|
~~~~~~
|
|
!!! error TS2300: Duplicate identifier 'Origin'.
|
|
}
|
|
|
|
namespace Point {
|
|
export var Origin = ""; //expected duplicate identifier error
|
|
~~~~~~
|
|
!!! error TS2300: Duplicate identifier 'Origin'.
|
|
}
|
|
|
|
|
|
namespace A {
|
|
export class Point {
|
|
constructor(public x: number, public y: number) { }
|
|
|
|
static Origin: Point = { x: 0, y: 0 };
|
|
~~~~~~
|
|
!!! error TS2300: Duplicate identifier 'Origin'.
|
|
}
|
|
|
|
export namespace Point {
|
|
export var Origin = ""; //expected duplicate identifier error
|
|
~~~~~~
|
|
!!! error TS2300: Duplicate identifier 'Origin'.
|
|
}
|
|
} |