tsubscript.nim 149 B

1234567891011
  1. # issue #14860
  2. type
  3. Dummie = object
  4. iterator `[]`(d: Dummie, a, b: int): int = discard
  5. let d = Dummie()
  6. for s in d[0, 1]: discard # error here