fork download
  1. # your code goes here
  2.  
  3. proc doStuff(s: string) =
  4. echo s
  5. s = "WTF"
  6.  
  7. proc main() =
  8. var s1 = "Test"
  9. doStuff(s1)
  10.  
  11. if s1 = "WTF":
  12. echo "Lol shit"
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.nim(5, 3) Error: 's' cannot be assigned to
stdout
Standard output is empty