Files
Nim/tests/ccgbugs/trecursive_closure.nim
2018-11-23 11:58:28 +01:00

19 lines
305 B
Nim

discard """
action: compile
"""
# bug #2233
type MalType = object
fun: proc: MalType
proc f(x: proc: MalType) =
discard x()
f(nil)
# bug #2823
type A = object #of RootObj <-- Uncomment this to get no errors
test: proc(i: A): bool
var a: proc(i: A): bool # Or comment this line to get no errors