TypeScript/tests/baselines/reference/stringNamedPropertyDuplicates.errors.txt

34 lines
762 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== 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"'.
}