/* Start to type your program */
// Add your comments!
// Press enter to add a new line.
class Main {
function main(): unit = println("Hello World!")
}

Program Standard Out:

Hello World!

Pretty Printed Program:

class Main { function main(): unit = println("Hello World!") }

Compiled JS:

const _builtin_stringConcat = (a, b) => a + b;
const _builtin_println = (line) => console.log(line);
const _builtin_stringToInt = (v) => BigInt(v);
const _builtin_intToString = (v) => String(v);
const _builtin_throw = (v) => { throw Error(v); };
const _module_Demo_class_Main_function_main = () => {
var _t0 = _builtin_println("Hello World!");
};
const _compiled_program_main = () => {
_module_Demo_class_Main_function_main();
};
_compiled_program_main();

Optimized Assembly:

.text
.intel_syntax noprefix
.p2align 4, 0x90
.align 8
.globl _compiled_program_main
_module_Demo_class_Main_function_main:
push rbp
mov rbp, rsp
lea rax, qword ptr [rip+GLOBAL_STRING_0]
lea rdi, qword ptr [rax+8]
call _builtin_println
mov rsp, rbp
pop rbp
ret
_compiled_program_main:
push rbp
mov rbp, rsp
lea rax, qword ptr [rip+GLOBAL_STRING_0]
lea rdi, qword ptr [rax+8]
call _builtin_println
mov rsp, rbp
pop rbp
ret
.data
.align 8
GLOBAL_STRING_0:
.quad 12
.quad 72 ## H
.quad 101 ## e
.quad 108 ## l
.quad 108 ## l
.quad 111 ## o
.quad 32 ##
.quad 87 ## W
.quad 111 ## o
.quad 114 ## r
.quad 108 ## l
.quad 100 ## d
.quad 33 ## !
.text