trat_float.nim 188 B

12345678910
  1. discard """
  2. errormsg: '''type mismatch: got'''
  3. file: "trat_float.nim"
  4. line: "9,19"
  5. """
  6. import rationals
  7. var
  8. # this fails - no floats as num or den
  9. r = initRational(1.0'f, 1.0'f)