roscopeco / deelang

A lightweight dynamic scripting language for Android
Other
28 stars 0 forks source link

Method calls on parenthesized expressions fail to compile #3

Closed roscopeco closed 11 years ago

roscopeco commented 11 years ago

When attempting to chain a method call on a parenthesized expression, the compiler fails with the error "Cannot chain void method".

Example code:

(2+3).times() { foo() }

This code generates the error.

It appears that this syntax is supported in the parser but incompletely implemented in the compiler itself.

roscopeco commented 11 years ago

Fixed for now. Revisit once Issue #11 is implemented.