diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-08-26 14:57:59 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-08-26 14:57:59 +0200 |
commit | be4748eb5728f2fe9fdfa2c56f6abbd617e55a83 (patch) | |
tree | 5e77384c3d6af51ec6536877e1a1bafed7f85ae3 /compiler | |
parent | 34dd08e9ae56b0003fc4ea32262b5284cfd21c41 (diff) | |
download | Nim-be4748eb5728f2fe9fdfa2c56f6abbd617e55a83.tar.gz |
do not crash on #3928
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/sigmatch.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim index 949d4dc19..7cdaa197d 100644 --- a/compiler/sigmatch.nim +++ b/compiler/sigmatch.nim @@ -1312,6 +1312,7 @@ proc localConvMatch(c: PContext, m: var TCandidate, f, a: PType, call.add(arg.copyTree) result = c.semExpr(c, call) if result != nil: + if result.typ == nil: return nil # resulting type must be consistent with the other arguments: var r = typeRel(m, f.sons[0], result.typ) if r < isGeneric: return nil |