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

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)