summary refs log tree commit diff stats
path: root/compiler/semmagic.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-08-30 20:16:35 +0200
committerAraq <rumpf_a@web.de>2014-08-30 20:16:35 +0200
commit0257f389fef6492906e47761f7e366921113bba6 (patch)
treede384ba83fe75487d4d14f38bb0456855a087658 /compiler/semmagic.nim
parent5fad73c8d0416133a418ec0c0c8bd4c279ae2ada (diff)
downloadNim-0257f389fef6492906e47761f7e366921113bba6.tar.gz
fixes #1366
Diffstat (limited to 'compiler/semmagic.nim')
-rw-r--r--compiler/semmagic.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semmagic.nim b/compiler/semmagic.nim
index 7b612c806..a72a6ab7d 100644
--- a/compiler/semmagic.nim
+++ b/compiler/semmagic.nim
@@ -126,7 +126,7 @@ proc magicsAfterOverloadResolution(c: PContext, n: PNode,
     result.typ = getSysType(tyString)
   of mInstantiationInfo: result = semInstantiationInfo(c, n)
   of mOrd: result = semOrd(c, n)
-  of mHigh: result = semLowHigh(c, n, mHigh)
+  of mHigh, mLow: result = semLowHigh(c, n, n[0].sym.magic)
   of mShallowCopy: result = semShallowCopy(c, n, flags)
   of mNBindSym: result = semBindSym(c, n)
   of mLocals: result = semLocals(c, n)
151 152 153 154 155 156