diff options
author | Jasper Jenkins <jasper.vs.jenkins@gmail.com> | 2019-05-01 22:18:45 -0700 |
---|---|---|
committer | Jasper Jenkins <jasper.vs.jenkins@gmail.com> | 2019-05-01 22:18:45 -0700 |
commit | 8a6b416c28d635365b2718021e0c4b34e9ec8a00 (patch) | |
tree | 960dba06ca8940b43e80b87c49cb38cf11d6af65 /compiler | |
parent | c94ab46923852d2eb96eab5e518d392b0d705fce (diff) | |
download | Nim-8a6b416c28d635365b2718021e0c4b34e9ec8a00.tar.gz |
const named tuple unpacking
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/semfold.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semfold.nim b/compiler/semfold.nim index 5fb2fcd65..3034ef9cc 100644 --- a/compiler/semfold.nim +++ b/compiler/semfold.nim @@ -701,7 +701,7 @@ proc getConstExpr(m: PSym, n: PNode; g: ModuleGraph): PNode = for i in countup(0, sonsLen(n) - 1): var a = getConstExpr(m, n.sons[i].sons[1], g) if a == nil: return nil - result.sons[i].sons[1] = a + result.sons[i] = a else: for i in countup(0, sonsLen(n) - 1): var a = getConstExpr(m, n.sons[i], g) |