1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
tests/cases/conformance/types/objectTypeLiteral/propertySignatures/stringNamedPropertyDuplicates.ts(3,5): error TS2300: Duplicate identifier '"a b"'.
tests/cases/conformance/types/objectTypeLiteral/propertySignatures/stringNamedPropertyDuplicates.ts(5,12): error TS2300: Duplicate identifier '"c d"'.
tests/cases/conformance/types/objectTypeLiteral/propertySignatures/stringNamedPropertyDuplicates.ts(9,5): error TS2300: Duplicate identifier 'a b'.
tests/cases/conformance/types/objectTypeLiteral/propertySignatures/stringNamedPropertyDuplicates.ts(10,5): error TS2300: Duplicate identifier 'a b'.
tests/cases/conformance/types/objectTypeLiteral/propertySignatures/stringNamedPropertyDuplicates.ts(14,5): error TS2300: Duplicate identifier 'a b'.
tests/cases/conformance/types/objectTypeLiteral/propertySignatures/stringNamedPropertyDuplicates.ts(15,5): error TS2300: Duplicate identifier 'a b'.
tests/cases/conformance/types/objectTypeLiteral/propertySignatures/stringNamedPropertyDuplicates.ts(20,5): error TS1005: ',' expected.
==== tests/cases/conformance/types/objectTypeLiteral/propertySignatures/stringNamedPropertyDuplicates.ts (7 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;
~~~~~
!!! error TS2300: Duplicate identifier 'a b'.
"a b": number;
~~~~~
!!! error TS2300: Duplicate identifier 'a b'.
}
var a: {
"a b": number;
~~~~~
!!! error TS2300: Duplicate identifier 'a b'.
"a b": number;
~~~~~
!!! error TS2300: Duplicate identifier 'a b'.
}
var b = {
"a b": 1
"a b": 1
~~~~~
!!! error TS1005: ',' expected.
}
|