fix regression in tmatrixconcept

This commit is contained in:
Zahary Karadjov 2017-04-16 14:39:00 +03:00
commit 2da4a4fbe3

View file

@ -810,6 +810,10 @@ proc inferStaticParam*(c: var TCandidate, lhs: PNode, rhs: BiggestInt): bool =
var inferred = newTypeWithSons(c.c, tyStatic, lhs.typ.sons) var inferred = newTypeWithSons(c.c, tyStatic, lhs.typ.sons)
inferred.n = newIntNode(nkIntLit, rhs) inferred.n = newIntNode(nkIntLit, rhs)
put(c, lhs.typ, inferred) put(c, lhs.typ, inferred)
if c.c.inTypeClass > 0:
# inside concepts, binding is currently done with
# direct mutation of the involved types:
lhs.typ.n = inferred.n
return true return true
return false return false