diff options
author | Araq <rumpf_a@web.de> | 2017-12-01 01:52:00 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2017-12-01 01:52:00 +0100 |
commit | fa92c519aa6ac04f10655b1ab6992701549d4aed (patch) | |
tree | 226ba271daccfc14af091df54ea83c30ca53fe16 /compiler/semexprs.nim | |
parent | 255902f9a5a9f92ce2d65996a43626eff4c3b52c (diff) | |
download | Nim-fa92c519aa6ac04f10655b1ab6992701549d4aed.tar.gz |
more progress on destructors; removed old destructor based code as it proved confusing
Diffstat (limited to 'compiler/semexprs.nim')
-rw-r--r-- | compiler/semexprs.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim index 1598d1909..65b111d8f 100644 --- a/compiler/semexprs.nim +++ b/compiler/semexprs.nim @@ -53,7 +53,6 @@ proc semExprWithType(c: PContext, n: PNode, flags: TExprFlags = {}): PNode = else: if efNoProcvarCheck notin flags: semProcvarCheck(c, result) if result.typ.kind == tyVar: result = newDeref(result) - semDestructorCheck(c, result, flags) proc semExprNoDeref(c: PContext, n: PNode, flags: TExprFlags = {}): PNode = result = semExpr(c, n, flags) @@ -66,7 +65,6 @@ proc semExprNoDeref(c: PContext, n: PNode, flags: TExprFlags = {}): PNode = result.typ = errorType(c) else: semProcvarCheck(c, result) - semDestructorCheck(c, result, flags) proc semSymGenericInstantiation(c: PContext, n: PNode, s: PSym): PNode = result = symChoice(c, n, s, scClosed) @@ -671,6 +669,7 @@ proc afterCallActions(c: PContext; n, orig: PNode, flags: TExprFlags): PNode = if callee.magic != mNone: result = magicsAfterOverloadResolution(c, result, flags) if result.typ != nil: liftTypeBoundOps(c, result.typ, n.info) + #result = patchResolvedTypeBoundOp(c, result) if c.matchedConcept == nil: result = evalAtCompileTime(c, result) |