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]
....

16
16
/home/jail/prog.nim(30, 9) Error: type mismatch: got <AstWrap[{0}]>
but expected one of: 
proc onlyLits(arg: AstWrap[toSet({akInt, akString, akFloat})])
  first type mismatch at position: 1
  required type for arg: AstWrap[{0, 1, 2}]
  but expression 'AstWrap[toSet({akInt})]()' is of type: AstWrap[{0}]

expression: onlyLits(AstWrap[toSet({akInt})]())
Exit Code:
1