summary refs log tree commit diff stats
path: root/compiler/pretty.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2013-07-30 17:15:58 +0200
committerAraq <rumpf_a@web.de>2013-07-30 17:15:58 +0200
commitd640121ce62adfae4506e1d980b3920ebd1a7168 (patch)
treec00d2025e14d9c5d1145397f5372ef2f70683e2d /compiler/pretty.nim
parentfd2a808266f8d4a66b2921c5bc5543d78c92a633 (diff)
downloadNim-d640121ce62adfae4506e1d980b3920ebd1a7168.tar.gz
lfFullExternalName for 'nimrod pretty'
Diffstat (limited to 'compiler/pretty.nim')
-rw-r--r--compiler/pretty.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/pretty.nim b/compiler/pretty.nim
index e9094cdf7..07f547837 100644
--- a/compiler/pretty.nim
+++ b/compiler/pretty.nim
@@ -119,7 +119,8 @@ proc processSym(c: PPassContext, n: PNode): PNode =
     if {sfImportc, sfExportc} * s.flags != {}:
       # careful, we must ensure the resulting name still matches the external
       # name:
-      if newName != s.name.s and newName != s.loc.r.ropeToStr:
+      if newName != s.name.s and newName != s.loc.r.ropeToStr and
+          lfFullExternalName notin s.loc.flags:
         Message(n.info, errGenerated, 
           "cannot rename $# to $# due to external name" % [s.name.s, newName])
         cannotRename.incl(s.id)