mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-31 18:32:11 +00:00
15 lines
272 B
Nim
15 lines
272 B
Nim
# 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
|