summary refs log tree commit diff stats
path: root/compiler/astalgo.nim
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2020-03-29 19:05:01 +0300
committerAndreas Rumpf <rumpf_a@web.de>2020-04-01 19:38:44 +0200
commit7b7e42be546889447cb046c1cb2091885d8a19e3 (patch)
tree6d98d7d6759a30d9a31b4c73484db1efe3ff0e80 /compiler/astalgo.nim
parent0521f98486a6a95b388864747d584ddd5bf68391 (diff)
downloadNim-7b7e42be546889447cb046c1cb2091885d8a19e3.tar.gz
More precise error messages for uninitialized fields in the presence of inheritance
Diffstat (limited to 'compiler/astalgo.nim')
-rw-r--r--compiler/astalgo.nim7
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/astalgo.nim b/compiler/astalgo.nim
index 968918ba9..bd60ddd7d 100644
--- a/compiler/astalgo.nim
+++ b/compiler/astalgo.nim
@@ -1041,3 +1041,10 @@ proc isAddrNode*(n: PNode): bool =
       if n[0].kind == nkSym and n[0].sym.magic == mAddr: true
       else: false
     else: false
+
+proc listSymbolNames*(symbols: openArray[PSym]): string =
+  for sym in symbols:
+    if result.len > 0:
+      result.add ", "
+    result.add sym.name.s
+