Allow typeof(nil) as a return type

This commit is contained in:
Albert Safin 2019-08-31 09:46:13 +00:00
commit efe1bed82e
4 changed files with 8 additions and 2 deletions

View file

@ -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()