summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-01-03 01:20:47 +0100
committerAraq <rumpf_a@web.de>2012-01-03 01:20:47 +0100
commit20843b7c1a057e2b5b10248613b4d9e8def04980 (patch)
tree4e993cdd14553c97bf7b861e8bf5980b1e81280a
parentbcbfa3aaa4f05a002702528b0efa980dad8b5286 (diff)
downloadNim-20843b7c1a057e2b5b10248613b4d9e8def04980.tar.gz
bugfix: tester should compile again
-rwxr-xr-xcompiler/semtypes.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim
index 20e31b969..3d572f517 100755
--- a/compiler/semtypes.nim
+++ b/compiler/semtypes.nim
@@ -788,7 +788,7 @@ proc semGenericConstraints(c: PContext, n: PNode, result: PType) =
   else:
     var x = semTypeNode(c, n, nil)
     if x.kind in StructuralEquivTypes and (
-        sonsLen(x) == 0 or x.sons[0].kind == tyEmpty):
+        sonsLen(x) == 0 or x.sons[0].kind in {tyGenericParam, tyEmpty}):
       x = newConstraint(c, x.kind)
     result.addSon(x)