2014-09-12 22:35:07 +02:00
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-07-23 19:40:39 +02:00
==== tests/cases/compiler/duplicatePropertiesInStrictMode.ts (2 errors) ====
"use strict";
var x = {
x: 1,
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-07-23 19:40:39 +02:00
~
2014-09-12 00:19:57 +02:00
!!! error TS2300: Duplicate identifier 'x'.
2014-07-23 19:40:39 +02:00
}