fork download
  1. type
  2. MyType = object
  3. mySeq: seq[int]
  4.  
  5. proc get(m: MyType): seq[int]
  6.  
  7. var mt = MyType(mySeq: @[])
  8.  
  9. mt.get.delete(0)
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.nim(9, 7) Error: type mismatch: got (seq[int], int literal(0))
but expected one of: 
system.delete(x: var seq[T], i: Natural)

stdout
Standard output is empty