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

10 lines
281 B
Plaintext
Raw Normal View History

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