bugfix: tester should compile again
This commit is contained in:
parent
bcbfa3aaa4
commit
20843b7c1a
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue