TypeScript/tests/baselines/reference/duplicatePropertiesInStrictMode.errors.txt
2014-09-11 16:11:08 -07:00

10 lines
309 B
Plaintext

==== tests/cases/compiler/duplicatePropertiesInStrictMode.ts (2 errors) ====
"use strict";
var x = {
x: 1,
x: 2
~
!!! error TS1117: An object literal cannot have multiple properties with the same name in strict mode.
~
!!! error TS2300: Duplicate identifier 'x'.
}