summary refs log tree commit diff stats
path: root/compiler/sigmatch.nim
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2014-01-26 00:45:50 +0200
committerZahary Karadjov <zahary@gmail.com>2014-01-26 00:45:50 +0200
commit5a6030a16bf74ee7de92117c5b2d7310b8b36d28 (patch)
treee82021816274928684f03b4603449d8ce08552fd /compiler/sigmatch.nim
parent3f71b7f1f6db5fbe3c61dde0cfd43d1eb0088cb6 (diff)
downloadNim-5a6030a16bf74ee7de92117c5b2d7310b8b36d28.tar.gz
the `is` operator now uses exactly the same algorithm as proc signature matching
Diffstat (limited to 'compiler/sigmatch.nim')
-rw-r--r--compiler/sigmatch.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim
index 971d526ee..d269e9e69 100644
--- a/compiler/sigmatch.nim
+++ b/compiler/sigmatch.nim
@@ -820,7 +820,7 @@ proc typeRel(c: var TCandidate, f, aOrig: PType, doBind = true): TTypeRelation =
       else:
         return isNone
 
-  of tyUserTypeClassInst:
+  of tyUserTypeClass, tyUserTypeClassInst:
     considerPreviousT:
       result = matchUserTypeClass(c.c, c, f, a)
       if result == isGeneric: