34 lines
No EOL
762 B
Text
34 lines
No EOL
762 B
Text
==== tests/cases/conformance/types/objectTypeLiteral/propertySignatures/stringNamedPropertyDuplicates.ts (6 errors) ====
|
|
class C {
|
|
"a b": number;
|
|
"a b": number;
|
|
~~~~~
|
|
!!! Duplicate identifier '"a b"'.
|
|
static "c d": number;
|
|
static "c d": number;
|
|
~~~~~
|
|
!!! Duplicate identifier '"c d"'.
|
|
}
|
|
|
|
interface I {
|
|
"a b": number;
|
|
"a b": number;
|
|
~~~~~
|
|
!!! Duplicate identifier '"a b"'.
|
|
}
|
|
|
|
var a: {
|
|
"a b": number;
|
|
"a b": number;
|
|
~~~~~
|
|
!!! Duplicate identifier '"a b"'.
|
|
}
|
|
|
|
var b = {
|
|
"a b": 1
|
|
"a b": 1
|
|
~~~~~
|
|
!!! ',' expected.
|
|
~~~~~
|
|
!!! Duplicate identifier '"a b"'.
|
|
} |