# hello.nims
    var str = " John"
    system.insert(str, "Hello" , 0.Natural)
    
    
    Run

This works with nim compiler but fails with NimScript: 
    
    
    nim e hello.nims
    
    hello.nims(3, 14) Error: type mismatch: got <string, string, Natural>
    but expected one of:
    proc insert[T](x: var seq[T]; item: T; i = 0.Natural)
      first type mismatch at position: 1
      required type: var seq[T]
      but expression 'str' is of type: string
    
    
    Run

It seems that 
    
    
    proc insert(x: var string; item: string; i = 0.Natural)
    
    
    Run

does not exist

Reply via email to