summary refs log blame commit diff stats
path: root/tests/generics/t7141.nim
blob: b1e9cbf436d9ed6392277385bb692d63dc4aec5b (plain) (tree)
1
2
3
4
5
6
7
8
9
           
                                       
         





                                
discard """
  errormsg: "cannot instantiate: \'T\'"
  line: 6
"""

proc foo[T](x: T) =
  discard

var fun = if true: foo else: foo