* Add tests to confirm https://github.com/nim-lang/Nim/issues/7231 is fixed. * Add test for closed https://github.com/nim-lang/Nim/issues/6137 * Add test for https://github.com/nim-lang/Nim/issues/7141
10 lines
150 B
Nim
10 lines
150 B
Nim
discard """
|
|
action: "reject"
|
|
line: 7
|
|
errormsg: "cannot instantiate: \'T\'"
|
|
"""
|
|
|
|
proc foo[T](x: T) =
|
|
discard
|
|
|
|
var fun = if true: foo else: foo
|