Nim/tests/typerel/tnocontains.nim
2018-12-11 21:23:21 +01:00

11 lines
238 B
Nim

discard """
errormsg: "type mismatch: got <string, string>"
file: "tnocontains.nim"
line: 10
"""
# shouldn't compile since it doesn't do what you think it does without
# importing strutils:
let x = "abcdef".contains("abc")
echo x