Add support to return void in a function

* statement `return;` is valid now.
* functions return void by default, an explicit return is not necessary now
This commit is contained in:
Skydark Chen committed 2015-11-15 19:44:02 +08:00
1 parent 33c2bd0c94
commit 2924666ad4
2 files changed
+5 -1

No files matched your search

@@ -90,6 +90,7 @@ public class ExpressionJavaLambda extends Expression {
for (Statement statement : statements) {
statement.compile(environmentMethod);
}
output.ret();
output.end();
environment.putClass(clsName, cw.toByteArray());