summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2017-04-16 14:39:00 +0300
committerZahary Karadjov <zahary@gmail.com>2017-04-16 14:39:00 +0300
commit2da4a4fbe3d7ac24b05ee308d5b602a4775ed501 (patch)
tree2b93fef841e850a4816772953a8d81d71eb5fc9c /compiler
parent3571a8d2f1420ad6f47ffd0c527520de6721dfb0 (diff)
downloadNim-2da4a4fbe3d7ac24b05ee308d5b602a4775ed501.tar.gz
fix regression in tmatrixconcept
Diffstat (limited to 'compiler')
-rw-r--r--compiler/sigmatch.nim4
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