summary refs log tree commit diff stats
path: root/tests/rational/trat_float.nim
blob: 663973bf9c0fdc77f54a043c464d14f597233d2b (plain) (blame)
1
2
3
4
5
6
7
8
9
discard """
  errormsg: '''type mismatch: got'''
  file: "trat_float.nim"
  line: "9,19"
"""
import rationals
var
  # this fails - no floats as num or den
  r = initRational(1.0'f, 1.0'f)