6 lines
209 B
Mojo
6 lines
209 B
Mojo
# probe: can a float literal stand left of a Float32 in a comparison? (no: 0.1 == x has no overload; left of a Float64 it does)
|
|
# expect: compile-error
|
|
def main():
|
|
var x: Float32 = 0.1
|
|
print(0.1 == x)
|