prakhar1989 / JSJS

A strongly typed language for the web!
http://jsjs-lang.org
MIT License
40 stars 5 forks source link

Type Error: in print #63

Closed prakhar1989 closed 8 years ago

prakhar1989 commented 8 years ago

The following gives a type error - Type error: expected value of type 'unit', got a value of type 'string' instead%

print("hello world");

Whereas the bottom two don't -

10 + 10; // where print is not the last expression
print("hello");

or

print_string("hello")