source-academy / java-slang

Implementation of the Java language in TypeScript
Apache License 2.0
0 stars 0 forks source link

Compiler: type conversion #56

Open martin-henz opened 3 months ago

martin-henz commented 3 months ago

Currently, type conversion is not supported:

        long x = 1;

gives error:

Exception in thread "Thread-0" 
java.lang.RuntimeException

similar:

         long x = 1L;
         x = x + 1;