summary refs log tree commit diff stats
path: root/tests/reject/tnocontains.nim
blob: 4f49514788dbc32e71237d3d339ac84404b13382 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
discard """
  file: "tnocontains.nim"
  line: 10
  errormsg: "type mismatch: got (string, string)"
"""

# shouldn't compile since it doesn't do what you think it does without
# importing strutils:

let x = "abcdef".contains("abc")
echo x