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

17 lines
735 B
Plaintext
Raw Normal View History

2014-10-01 02:15:18 +02:00
tests/cases/compiler/duplicatePropertiesInStrictMode.ts(3,3): error TS2300: Duplicate identifier 'x'.
tests/cases/compiler/duplicatePropertiesInStrictMode.ts(4,3): error TS1117: An object literal cannot have multiple properties with the same name in strict mode.
tests/cases/compiler/duplicatePropertiesInStrictMode.ts(4,3): error TS2300: Duplicate identifier 'x'.
2014-10-01 02:15:18 +02:00
==== tests/cases/compiler/duplicatePropertiesInStrictMode.ts (3 errors) ====
2014-07-23 19:40:39 +02:00
"use strict";
var x = {
x: 1,
2014-10-01 02:15:18 +02:00
~
!!! error TS2300: Duplicate identifier 'x'.
2014-07-23 19:40:39 +02:00
x: 2
~
!!! error TS1117: An object literal cannot have multiple properties with the same name in strict mode.
2014-10-01 20:27:20 +02:00
~
!!! error TS2300: Duplicate identifier 'x'.
2014-07-23 19:40:39 +02:00
}