diff options
| author | Ganesh Viswanathan <dev@genotrance.com> | 2019-03-21 10:51:00 -0500 |
|---|---|---|
| committer | Ganesh Viswanathan <dev@genotrance.com> | 2019-03-21 10:51:00 -0500 |
| commit | 28e2d7bb872c94ca0f25ba0e018b5d6132dc8fbc (patch) | |
| tree | 371b90565ac11a639ce959c9bf31ae6fad7f0b39 | |
| parent | 295e838bc18aa52c5213ed2172f615511bf7a906 (diff) | |
| download | nimterop-28e2d7bb872c94ca0f25ba0e018b5d6132dc8fbc.tar.gz nimterop-28e2d7bb872c94ca0f25ba0e018b5d6132dc8fbc.zip | |
Fix #120 - object
| -rw-r--r-- | nimterop/getters.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nimterop/getters.nim b/nimterop/getters.nim index 8504d34..2fe7447 100644 --- a/nimterop/getters.nim +++ b/nimterop/getters.nim @@ -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 = "" |
