Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 4 years ago

Language

Nim

Compiler

nim 1.4.6

Options

Author

anonymous

about 4 years ago

test.nim

$ nim c ./prog.nim
Hint: used config file '/opt/wandbox/nim-1.4.6/config/nim.cfg' [Conf]
Hint: used config file '/opt/wandbox/nim-1.4.6/config/config.nims' [Conf]
.....
/home/jail/prog.nim(3, 2) template/generic instantiation of `t` from here
/home/jail/test.nim(3, 8) Error: type mismatch: got <string>
but expected one of: 
proc echo(x: varargs[typed, `$`])
  first type mismatch at position: 1
  required type for x: varargs[typed]
  but expression '$x`gensym0' is of type: string

expression: echo $x`gensym0
Exit Code:
1