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

57 lines
2.8 KiB
Plaintext
Raw Normal View History

2014-10-01 02:15:18 +02:00
tests/cases/conformance/types/objectTypeLiteral/propertySignatures/stringNamedPropertyDuplicates.ts(2,5): error TS2300: Duplicate identifier '"a b"'.
tests/cases/conformance/types/objectTypeLiteral/propertySignatures/stringNamedPropertyDuplicates.ts(3,5): error TS2300: Duplicate identifier '"a b"'.
2014-10-01 02:15:18 +02:00
tests/cases/conformance/types/objectTypeLiteral/propertySignatures/stringNamedPropertyDuplicates.ts(4,12): error TS2300: Duplicate identifier '"c d"'.
2014-10-01 20:27:20 +02:00
tests/cases/conformance/types/objectTypeLiteral/propertySignatures/stringNamedPropertyDuplicates.ts(5,12): error TS2300: Duplicate identifier '"c d"'.
2014-10-01 02:15:18 +02:00
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"'.
2014-10-01 02:15:18 +02:00
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"'.
2014-10-01 02:15:18 +02:00
tests/cases/conformance/types/objectTypeLiteral/propertySignatures/stringNamedPropertyDuplicates.ts(19,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(20,5): error TS2300: Duplicate identifier '"a b"'.
2014-10-01 02:15:18 +02:00
==== tests/cases/conformance/types/objectTypeLiteral/propertySignatures/stringNamedPropertyDuplicates.ts (11 errors) ====
2014-07-13 01:04:16 +02:00
class C {
"a b": number;
~~~~~
!!! error TS2300: Duplicate identifier '"a b"'.
2014-10-01 02:15:18 +02:00
"a b": number;
2014-10-01 20:27:20 +02:00
~~~~~
2014-10-01 02:15:18 +02:00
!!! error TS2300: Duplicate identifier '"a b"'.
2014-07-13 01:04:16 +02:00
static "c d": number;
~~~~~
2014-10-01 02:15:18 +02:00
!!! error TS2300: Duplicate identifier '"c d"'.
static "c d": number;
2014-10-01 20:27:20 +02:00
~~~~~
!!! error TS2300: Duplicate identifier '"c d"'.
2014-07-13 01:04:16 +02:00
}
interface I {
"a b": number;
~~~~~
2014-10-01 02:15:18 +02:00
!!! error TS2300: Duplicate identifier '"a b"'.
"a b": number;
2014-10-01 20:27:20 +02:00
~~~~~
!!! error TS2300: Duplicate identifier '"a b"'.
2014-07-13 01:04:16 +02:00
}
var a: {
"a b": number;
~~~~~
2014-10-01 02:15:18 +02:00
!!! error TS2300: Duplicate identifier '"a b"'.
"a b": number;
2014-10-01 20:27:20 +02:00
~~~~~
!!! error TS2300: Duplicate identifier '"a b"'.
2014-07-13 01:04:16 +02:00
}
var b = {
"a b": 1
2014-10-01 02:15:18 +02:00
~~~~~
!!! error TS2300: Duplicate identifier '"a b"'.
2014-07-13 01:04:16 +02:00
"a b": 1
~~~~~
!!! error TS1005: ',' expected.
2014-10-01 20:27:20 +02:00
~~~~~
!!! error TS2300: Duplicate identifier '"a b"'.
2014-07-13 01:04:16 +02:00
}