t6281.nim 183 B

123456789
  1. discard """
  2. errormsg: "invalid type: 'SomeNumber' in this context: 'seq[SomeNumber]' for var"
  3. line: 6
  4. """
  5. var seqwat: seq[SomeNumber] = @[]
  6. proc foo(x: SomeNumber) =
  7. seqwat.add(x)