I am following the tutorial here I get a syntax error when I call this code.
native ("jvm")
void hello() {
import java.lang { System }
System.out.println("Hello, world!");
}
4: error: incorrect syntax: no viable alternative at token 'out'
System.out.println("Hello, world!");
^
1 error
ceylon compile: There was 1 error
I have tried recompiling and this only seems to happen with some code samples for example I can make a java HashMap. I think it has something to do with static methods but this should work since it is an example from their website.