Add testcase for some old fixed issues (#14960)
* Add testcase for #2703 * Add testcase for #2586 * Small fix
This commit is contained in:
parent
1850efbb6c
commit
425972c4e8
2 changed files with 18 additions and 0 deletions
|
|
@ -1,18 +0,0 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue