5 lines
190 B
Mojo
5 lines
190 B
Mojo
# probe: is Int(0.1) accepted? (no: a float literal is not made an Int at compile time; Int(x) of a Float64 value drops the fraction)
|
|
# expect: compile-error
|
|
def main():
|
|
print(Int(0.1))
|