diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2020-02-11 23:48:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-11 23:48:41 +0100 |
commit | c446c0f57af03e0be3a5b39be48d14676e7deebe (patch) | |
tree | 93d0115d567a052b9352fa62f00a1633c96776a0 /compiler | |
parent | eec07b4e84d3418d171cf08aa8a02f380a39b78e (diff) | |
download | Nim-c446c0f57af03e0be3a5b39be48d14676e7deebe.tar.gz |
fixes #13378 [backport] (#13392)
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/sigmatch.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim index 09b8d0b76..4105d3780 100644 --- a/compiler/sigmatch.nim +++ b/compiler/sigmatch.nim @@ -1942,6 +1942,8 @@ proc localConvMatch(c: PContext, m: var TCandidate, f, a: PType, if result != nil: if result.typ == nil: return nil + # bug #13378, ensure we produce a real generic instantiation: + result = c.semExpr(c, call) # resulting type must be consistent with the other arguments: var r = typeRel(m, f[0], result.typ) if r < isGeneric: return nil |