diff options
author | Zahary Karadjov <zahary@gmail.com> | 2014-01-26 00:45:50 +0200 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2014-01-26 00:45:50 +0200 |
commit | 5a6030a16bf74ee7de92117c5b2d7310b8b36d28 (patch) | |
tree | e82021816274928684f03b4603449d8ce08552fd /compiler/sigmatch.nim | |
parent | 3f71b7f1f6db5fbe3c61dde0cfd43d1eb0088cb6 (diff) | |
download | Nim-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.nim | 2 |
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: |