Codegen fix for procs taking type(nil) (#9231)
This commit is contained in:
parent
b8d2f79ef0
commit
505ae14f4b
2 changed files with 7 additions and 1 deletions
6
tests/ccgbugs/tnil_type.nim
Normal file
6
tests/ccgbugs/tnil_type.nim
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
discard """
|
||||
targets: "c cpp"
|
||||
"""
|
||||
|
||||
proc foo(v: type(nil)) = discard
|
||||
foo nil
|
||||
Loading…
Add table
Add a link
Reference in a new issue