diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-10-02 17:01:27 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-10-02 17:01:27 +0200 |
commit | 98e76a1058df52c281a80921828f73396ac69d73 (patch) | |
tree | f577307d78088f6c7b70f78eb0b4fe11ef7e8d0e | |
parent | 032c3b77db44908522ecdc47466ed9f898ba0194 (diff) | |
download | Nim-98e76a1058df52c281a80921828f73396ac69d73.tar.gz |
fixes #12336 [backport]
-rw-r--r-- | compiler/semtypinst.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semtypinst.nim b/compiler/semtypinst.nim index 1b2f80229..f9908f90f 100644 --- a/compiler/semtypinst.nim +++ b/compiler/semtypinst.nim @@ -589,7 +589,7 @@ proc replaceTypeVarsTAux(cl: var TReplTypeVars, t: PType): PType = for i in 0 ..< len(result): if result.sons[i] != nil: if result.sons[i].kind == tyGenericBody: - localError(cl.c.config, t.sym.info, + localError(cl.c.config, if t.sym != nil: t.sym.info else: cl.info, "cannot instantiate '" & typeToString(result.sons[i], preferDesc) & "' inside of type definition: '" & |