summary refs log tree commit diff stats
path: root/compiler/sigmatch.nim
diff options
context:
space:
mode:
authorOscar Nihlgård <oscarnihlgard@gmail.com>2019-08-03 10:16:07 +0200
committerArne Döring <arne.doering@gmx.net>2019-08-03 10:16:07 +0200
commitbcfb540e576603019dd1ac76ba4f8c9774e05943 (patch)
treec5da6bf3c5090d9688f1b6bdb597136b7324158a /compiler/sigmatch.nim
parent50e921bb941d0f1ef728dfb4623f626015556e10 (diff)
downloadNim-bcfb540e576603019dd1ac76ba4f8c9774e05943.tar.gz
Allow typeof(nil) as generic parameter (#11869)
Diffstat (limited to 'compiler/sigmatch.nim')
-rw-r--r--compiler/sigmatch.nim2
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim
index 154d76209..07ed5c3bc 100644
--- a/compiler/sigmatch.nim
+++ b/compiler/sigmatch.nim
@@ -340,8 +340,6 @@ proc typeRel*(c: var TCandidate, f, aOrig: PType,
 
 proc concreteType(c: TCandidate, t: PType; f: PType = nil): PType =
   case t.kind
-  of tyNil:
-    result = nil              # what should it be?
   of tyTypeDesc:
     if c.isNoCall: result = t
     else: result = nil