mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-25 00:35:26 +00:00
fixes #2823
This commit is contained in:
@@ -6,3 +6,9 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user