7 lines
323 B
Text
7 lines
323 B
Text
|
tests/cases/compiler/objectLiteralMemberWithQuestionMark1.ts(1,14): error TS1112: A class member cannot be declared optional.
|
||
|
|
||
|
|
||
|
==== tests/cases/compiler/objectLiteralMemberWithQuestionMark1.ts (1 errors) ====
|
||
|
var v = { foo?() { } }
|
||
|
~
|
||
|
!!! error TS1112: A class member cannot be declared optional.
|