summary refs log tree commit diff stats
path: root/tests/typerel/tnocontains.nim
blob: 8bea8aa56215b617644a6efd941649a1d372b668 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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