summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorCharlie Barto <barcharcraz@msn.com>2014-02-04 00:07:17 -0500
committerCharlie Barto <barcharcraz@msn.com>2014-02-04 00:07:17 -0500
commit7cfec910576c3a9f3401aae99f9209716d02f689 (patch)
tree1cbd0b08dbfef29c50fdb85032920178b97eadae /compiler
parent51076a0be6900602e5fc092e52021370937a85f7 (diff)
downloadNim-7cfec910576c3a9f3401aae99f9209716d02f689.tar.gz
deleted assert that would never fire because it turned into an error message
Diffstat (limited to 'compiler')
-rw-r--r--compiler/semtypes.nim1
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim
index a434effed..789ff55f0 100644
--- a/compiler/semtypes.nim
+++ b/compiler/semtypes.nim
@@ -891,7 +891,6 @@ proc semGeneric(c: PContext, n: PNode, s: PSym, prev: PType): PType =
     localError(n.info, errNoGenericParamsAllowedForX, s.name.s)
     return newOrPrevType(tyError, prev, c)
   else:
-    internalAssert s.typ.kind == tyGenericBody
 
     var m = newCandidate(c, s, n)
     matches(c, n, copyTree(n), m)