Fix #120 - object

This commit is contained in:
Ganesh Viswanathan 2019-03-21 10:51:00 -05:00
commit 28e2d7bb87

View file

@ -119,7 +119,7 @@ proc getIdentifier*(name: string, kind: NimSymKind, parent=""): string =
checkIdentifier(result, $kind, parent, name)
if result in gReserved:
if result in gReserved or (result == "object" and kind != nskType):
result = &"`{result}`"
else:
result = ""