mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-16 22:11:18 +00:00
bugfix: tester should compile again
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user