mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
544 B
Plaintext
20 lines
544 B
Plaintext
cloduleWithDuplicateMember2.ts(7,16): error TS2300: Duplicate identifier 'x'.
|
|
cloduleWithDuplicateMember2.ts(10,21): error TS2300: Duplicate identifier 'x'.
|
|
|
|
|
|
==== cloduleWithDuplicateMember2.ts (2 errors) ====
|
|
class C {
|
|
set x(y) { }
|
|
static set y(z) { }
|
|
}
|
|
|
|
namespace C {
|
|
export var x = 1;
|
|
~
|
|
!!! error TS2300: Duplicate identifier 'x'.
|
|
}
|
|
namespace C {
|
|
export function x() { }
|
|
~
|
|
!!! error TS2300: Duplicate identifier 'x'.
|
|
} |