TypeScript/tests/baselines/reference/stringNamedPropertyDuplicates.errors.txt
2014-07-12 17:30:19 -07:00

34 lines
762 B
Plaintext

==== 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"'.
}