summary refs log tree commit diff stats
path: root/compiler/semexprs.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-06-26 23:10:20 +0200
committerGitHub <noreply@github.com>2019-06-26 23:10:20 +0200
commitce2777af5a22f01196f409de0182d9ee4b40b6e1 (patch)
treea067827db1737b85838e9c30f0ee1b2bda1976ad /compiler/semexprs.nim
parentf65eaa51f15707393e33f6666af8b0b8f57a0f33 (diff)
parentb6fb47df77c3b1b642e69917a1d7462cf4f2dbe9 (diff)
downloadNim-ce2777af5a22f01196f409de0182d9ee4b40b6e1.tar.gz
fixes #11600 (#11602)
Diffstat (limited to 'compiler/semexprs.nim')
-rw-r--r--compiler/semexprs.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim
index e99c6172f..d52c87e7c 100644
--- a/compiler/semexprs.nim
+++ b/compiler/semexprs.nim
@@ -899,7 +899,7 @@ proc semIndirectOp(c: PContext, n: PNode, flags: TExprFlags): PNode =
   semOpAux(c, n)
   var t: PType = nil
   if n.sons[0].typ != nil:
-    t = skipTypes(n.sons[0].typ, abstractInst+{tyOwned}-{tyTypeDesc})
+    t = skipTypes(n.sons[0].typ, abstractInst+{tyOwned}-{tyTypeDesc, tyDistinct})
   if t != nil and t.kind == tyProc:
     # This is a proc variable, apply normal overload resolution
     let m = resolveIndirectCall(c, n, nOrig, t)