fe57f3d2e4
This makes parsing of these constructs the same whether they are in an object literal or a class. This is important for incrementla parsing for knowing if we can reuse these nodes if we run into them.
7 lines
323 B
Plaintext
7 lines
323 B
Plaintext
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. |