java2xtend icon indicating copy to clipboard operation
java2xtend copied to clipboard

';' is only allowed in block expressions

Open JanKoehnlein opened this issue 11 years ago • 0 comments

public class Foo { public String foo() { if(1>2) return "foo"; else return "bar"; } }

Will be converted to

class Foo { def foo(){ if (1 > 2) return 'foo'; else return 'bar'; } }

which has syntax errors, as the ';' are only allowed within block epressions

JanKoehnlein avatar Jul 04 '13 14:07 JanKoehnlein