fixes #12291 [backport] (#12338)

This commit is contained in:
Andreas Rumpf
2019-10-03 07:50:32 +02:00
committed by GitHub
parent 982086dbe9
commit c51857f434

View File

@@ -287,6 +287,7 @@ proc fillResult(conf: ConfigRef; param: PNode) =
proc typeNameOrLiteral(m: BModule; t: PType, literal: string): Rope =
if t.sym != nil and sfImportc in t.sym.flags and t.sym.magic == mNone:
useHeader(m, t.sym)
result = t.sym.loc.r
else:
result = rope(literal)