2014-10-01 02:15:18 +02:00
tests/cases/compiler/duplicatePropertiesInStrictMode.ts(3,3): error TS2300: Duplicate identifier 'x'.
2014-12-17 00:56:56 +01:00
tests/cases/compiler/duplicatePropertiesInStrictMode.ts(4,3): error TS1117: An object literal cannot have multiple properties with the same name in strict mode.
2014-09-12 22:35:07 +02:00
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
~
2014-09-12 00:19:57 +02:00
!!! error TS1117: An object literal cannot have multiple properties with the same name in strict mode.
2014-10-01 20:27:20 +02:00
~
2014-09-12 00:19:57 +02:00
!!! error TS2300: Duplicate identifier 'x'.
2014-07-23 19:40:39 +02:00
}