summary refs log tree commit diff stats
path: root/tests/stdlib/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)
> """ import importme block: var z: Ty z = 0 block: var z: Ty1 z = 0 block: echo aVar block: aProc() aProc1()