diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-04-04 16:41:35 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-04-04 16:41:35 +0200 |
commit | af70254c7b508b6658b50ec8b4fb9465a02acb3f (patch) | |
tree | 5086ebd352b2483beceb21c7f98afb1bcffabd22 | |
parent | 436b0031736b7b569f18a90c67e62a483716037a (diff) | |
download | Nim-af70254c7b508b6658b50ec8b4fb9465a02acb3f.tar.gz |
fixes #2006
-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 82f878932..377743de3 100644 --- a/compiler/sigmatch.nim +++ b/compiler/sigmatch.nim @@ -513,7 +513,7 @@ proc typeRangeRel(f, a: PType): TTypeRelation {.noinline.} = proc matchUserTypeClass*(c: PContext, m: var TCandidate, ff, a: PType): TTypeRelation = var body = ff.skipTypes({tyUserTypeClassInst}) - if c.inTypeClass > 20: + if c.inTypeClass > 4: localError(body.n[3].info, $body.n[3] & " too nested for type matching") return isNone |