fixes #12291 [backport] (#12338)

This commit is contained in:
Andreas Rumpf 2019-10-03 07:50:32 +02:00 • committed by GitHub
commit c51857f434
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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