Fix #120 - object
This commit is contained in:
parent
295e838bc1
commit
28e2d7bb87
1 changed files with 1 additions and 1 deletions
|
|
@ -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 = ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue