summary refs log tree commit diff stats
path: root/tests/ccgbugs
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-09-02 17:48:06 +0200
committerAndreas Rumpf <rumpf_a@web.de>2019-09-02 17:48:06 +0200
commit5a03eea518ba3cfeaa9f57ef0b6f1cf7bc8ed1d9 (patch)
treed9d16955b3be3a6eee16c44712f210d2bf17af78 /tests/ccgbugs
parent545ddf4a4f60233c3e547f16fa4ce83563a7bf7f (diff)
downloadNim-5a03eea518ba3cfeaa9f57ef0b6f1cf7bc8ed1d9.tar.gz
revert #12100; typeof(nil) is weird enough, don't allow it as the return type
Diffstat (limited to 'tests/ccgbugs')
-rw-r--r--tests/ccgbugs/tnil_type.nim3
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/ccgbugs/tnil_type.nim b/tests/ccgbugs/tnil_type.nim
index 12310dae9..9921b24a3 100644
--- a/tests/ccgbugs/tnil_type.nim
+++ b/tests/ccgbugs/tnil_type.nim
@@ -13,6 +13,3 @@ f3(typeof(nil))
 
 proc f4[T](_: T) = discard
 f4(nil)
-
-proc f5(): typeof(nil) = nil
-discard f5()