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

10 lines
288 B
Text
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
~
!!! Object literal cannot contain more than one property with the same name in the strict mode.
~
!!! Duplicate identifier 'x'.
}