revert #12100; typeof(nil) is weird enough, don't allow it as the return type
This commit is contained in:
parent
545ddf4a4f
commit
5a03eea518
2 changed files with 1 additions and 4 deletions
|
|
@ -13,6 +13,3 @@ f3(typeof(nil))
|
|||
|
||||
proc f4[T](_: T) = discard
|
||||
f4(nil)
|
||||
|
||||
proc f5(): typeof(nil) = nil
|
||||
discard f5()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue