mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: check types in a in b
expressions
This commit is contained in:
4
vlib/compiler/tests/repl/bad_in_type.repl
Normal file
4
vlib/compiler/tests/repl/bad_in_type.repl
Normal file
@ -0,0 +1,4 @@
|
||||
a := [1,2,3]
|
||||
println('hi' in a)
|
||||
===output===
|
||||
.vrepl.v:2:18: bad element type: `string` in `[]int`
|
Reference in New Issue
Block a user