summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-07-19 19:32:13 +0200
committerAraq <rumpf_a@web.de>2019-07-19 19:32:13 +0200
commit1868cbc44959e04f0455f062793f53426b0ebdf7 (patch)
tree8966d72252229e60e6a14a3342335b750a2fc9b1 /compiler
parent5a020d641dde24b1af4705baf5bf7c2517d63b97 (diff)
downloadNim-1868cbc44959e04f0455f062793f53426b0ebdf7.tar.gz
revert the bugfix for #11747 as it really was a new, poorly though-out feature
Diffstat (limited to 'compiler')
-rw-r--r--compiler/semexprs.nim3
1 files changed, 0 insertions, 3 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim
index 929283bef..733df2c40 100644
--- a/compiler/semexprs.nim
+++ b/compiler/semexprs.nim
@@ -1414,9 +1414,6 @@ 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)