diff options
author | Araq <rumpf_a@web.de> | 2012-01-03 01:20:47 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-01-03 01:20:47 +0100 |
commit | 20843b7c1a057e2b5b10248613b4d9e8def04980 (patch) | |
tree | 4e993cdd14553c97bf7b861e8bf5980b1e81280a | |
parent | bcbfa3aaa4f05a002702528b0efa980dad8b5286 (diff) | |
download | Nim-20843b7c1a057e2b5b10248613b4d9e8def04980.tar.gz |
bugfix: tester should compile again
-rwxr-xr-x | compiler/semtypes.nim | 2 |
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) |