Closed prakhar1989 closed 8 years ago
The following gives a type error - Type error: expected value of type 'unit', got a value of type 'string' instead%
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")
The following gives a type error -
Type error: expected value of type 'unit', got a value of type 'string' instead%
Whereas the bottom two don't -
or