diff options
author | Zahary Karadjov <zahary@gmail.com> | 2017-04-16 14:39:00 +0300 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2017-04-16 14:39:00 +0300 |
commit | 2da4a4fbe3d7ac24b05ee308d5b602a4775ed501 (patch) | |
tree | 2b93fef841e850a4816772953a8d81d71eb5fc9c /compiler | |
parent | 3571a8d2f1420ad6f47ffd0c527520de6721dfb0 (diff) | |
download | Nim-2da4a4fbe3d7ac24b05ee308d5b602a4775ed501.tar.gz |
fix regression in tmatrixconcept
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/sigmatch.nim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim index 50a55e860..90391701c 100644 --- a/compiler/sigmatch.nim +++ b/compiler/sigmatch.nim @@ -810,6 +810,10 @@ proc inferStaticParam*(c: var TCandidate, lhs: PNode, rhs: BiggestInt): bool = var inferred = newTypeWithSons(c.c, tyStatic, lhs.typ.sons) inferred.n = newIntNode(nkIntLit, rhs) 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 false |