5b6bb5b649
Fixes issue #34. Specifically: * We no longer automatically assume "()" is a function expression. It must be followed by an arrow, colon, or curly brace. * If an arrow is missing following a signature, but a curly brace is present, we assume the user forgot the arrow and try to parse the body anyway.
9 lines
No EOL
173 B
Text
9 lines
No EOL
173 B
Text
==== tests/cases/compiler/emptyMemberAccess.ts (1 errors) ====
|
|
function getObj() {
|
|
|
|
().toString();
|
|
~
|
|
!!! Expression expected.
|
|
|
|
}
|
|
|