More precise error messages for uninitialized fields in the presence of inheritance

This commit is contained in:
Zahary Karadjov 2020-03-29 19:05:01 +03:00 • committed by Andreas Rumpf
commit 7b7e42be54
3 changed files with 39 additions and 38 deletions

View file

@ -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