diff options
author | Zahary Karadjov <zahary@gmail.com> | 2017-10-07 22:17:16 +0300 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2017-12-21 11:06:36 +0100 |
commit | 057d5789ba6cf7e1f0cef681ffba77b0c4788110 (patch) | |
tree | 847aeb3ca7418792af594ff209f9641de0c3dfeb /compiler | |
parent | 70380882c54a6eea08c715b015399673b55e9bc0 (diff) | |
download | Nim-057d5789ba6cf7e1f0cef681ffba77b0c4788110.tar.gz |
fix #6277
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/ccgexprs.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ccgexprs.nim b/compiler/ccgexprs.nim index dd526c5fb..da92b281e 100644 --- a/compiler/ccgexprs.nim +++ b/compiler/ccgexprs.nim @@ -849,7 +849,7 @@ proc genArrayElem(p: BProc, n, x, y: PNode, d: var TLoc) = var a, b: TLoc initLocExpr(p, x, a) initLocExpr(p, y, b) - var ty = skipTypes(skipTypes(a.t, abstractVarRange), abstractPtrs) + var ty = skipTypes(a.t, abstractVarRange + abstractPtrs + tyUserTypeClasses) var first = intLiteral(firstOrd(ty)) # emit range check: if optBoundsCheck in p.options and tfUncheckedArray notin ty.flags: |