fix regression in tmatrixconcept
This commit is contained in:
parent
3571a8d2f1
commit
2da4a4fbe3
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue