Allow typeof(nil) as a return type
This commit is contained in:
parent
9ae0dd611f
commit
efe1bed82e
4 changed files with 8 additions and 2 deletions
|
|
@ -12,4 +12,7 @@ proc f3(_: typedesc) = discard
|
|||
f3(typeof(nil))
|
||||
|
||||
proc f4[T](_: T) = discard
|
||||
f4(nil)
|
||||
f4(nil)
|
||||
|
||||
proc f5(): typeof(nil) = nil
|
||||
discard f5()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue