7 lines
353 B
Text
7 lines
353 B
Text
|
tests/cases/compiler/spaceBeforeQuestionMarkInPropertyAssignment.ts(1,12): error TS1162: An object member cannot be declared optional.
|
||
|
|
||
|
|
||
|
==== tests/cases/compiler/spaceBeforeQuestionMarkInPropertyAssignment.ts (1 errors) ====
|
||
|
var x = {x ?: 1} // should not crash
|
||
|
~
|
||
|
!!! error TS1162: An object member cannot be declared optional.
|