Files
pplus-library/mojo/probes/int-of-float-literal.mojo
alexm 568474d52f
Test (in pplus-core) / in-core (push) Failing after 28m44s
Initial commit
2026-11-12 22:23:48 -05:00

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))