diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-07-17 15:21:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-17 15:21:07 +0200 |
commit | 326860e84c6abdafbf5b5aef49a9f4f59d66162b (patch) | |
tree | 3d7ceaeabf0545dc7cf8713d1c3b1da73f0389e7 /compiler | |
parent | bae08d096195629d04748aa8757428e91d8062eb (diff) | |
parent | 15d2a92be024641c4e7a0f78dc2832206c63f0bb (diff) | |
download | Nim-326860e84c6abdafbf5b5aef49a9f4f59d66162b.tar.gz |
Merge pull request #11751 from nim-lang/araq-fixes-11474
fixes #11747
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/semexprs.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim index 0c20d2c20..bdf742bf1 100644 --- a/compiler/semexprs.nim +++ b/compiler/semexprs.nim @@ -1414,6 +1414,9 @@ proc semDeref(c: PContext, n: PNode): PNode = var t = skipTypes(n.sons[0].typ, {tyGenericInst, tyVar, tyLent, tyAlias, tySink, tyOwned}) case t.kind of tyRef, tyPtr: n.typ = t.lastSon + of tyTypeDesc: + # typeof(x[]) is still a typedesc: + n.typ = makeTypeDesc(c, t.lastSon.lastSon) else: result = nil #GlobalError(n.sons[0].info, errCircumNeedsPointer) |