TypeScript/tests/baselines/reference/stringNamedPropertyDuplicates.errors.txt
2014-09-11 16:11:08 -07:00

34 lines
846 B
Plaintext

==== tests/cases/conformance/types/objectTypeLiteral/propertySignatures/stringNamedPropertyDuplicates.ts (6 errors) ====
class C {
"a b": number;
"a b": number;
~~~~~
!!! error TS2300: Duplicate identifier '"a b"'.
static "c d": number;
static "c d": number;
~~~~~
!!! error TS2300: Duplicate identifier '"c d"'.
}
interface I {
"a b": number;
"a b": number;
~~~~~
!!! error TS2300: Duplicate identifier '"a b"'.
}
var a: {
"a b": number;
"a b": number;
~~~~~
!!! error TS2300: Duplicate identifier '"a b"'.
}
var b = {
"a b": 1
"a b": 1
~~~~~
!!! error TS1005: ',' expected.
~~~~~
!!! error TS2300: Duplicate identifier '"a b"'.
}