summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-09-11 11:59:12 +0200
committerAraq <rumpf_a@web.de>2019-09-11 11:59:12 +0200
commit99425ff21dc758c8cb9abc3ddbe44ed2025906f0 (patch)
tree4062714854472831dede4928a19f6e50b2bd6ee0 /compiler
parentee36931f26de138afd59a6497debee42567962c0 (diff)
downloadNim-99425ff21dc758c8cb9abc3ddbe44ed2025906f0.tar.gz
fixes #12174
Diffstat (limited to 'compiler')
-rw-r--r--compiler/astalgo.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/astalgo.nim b/compiler/astalgo.nim
index cfa1a67fd..0efa096be 100644
--- a/compiler/astalgo.nim
+++ b/compiler/astalgo.nim
@@ -194,6 +194,7 @@ proc sameIgnoreBacktickGensymInfo(a, b: string): bool =
   if a[0] != b[0]: return false
   var last = a.len - 1
   while last > 0 and a[last] != '`': dec(last)
+  if last == 0: last = a.len - 1
 
   var i = 1
   var j = 1