From 20843b7c1a057e2b5b10248613b4d9e8def04980 Mon Sep 17 00:00:00 2001 From: Araq Date: Tue, 3 Jan 2012 01:20:47 +0100 Subject: [PATCH] bugfix: tester should compile again --- compiler/semtypes.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim index 20e31b9696..3d572f5176 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)