fixes #12291 [backport] (#12338)

(cherry picked from commit c51857f434)
This commit is contained in:
Andreas Rumpf
2019-10-03 07:50:32 +02:00
committed by narimiran
parent 0d0cf86401
commit 9afd19b236

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)