10 lines
No EOL
281 B
Text
10 lines
No EOL
281 B
Text
==== 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.
|
|
~
|
|
!!! Duplicate identifier 'x'.
|
|
} |