1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

cgen: fix invalid operands to an_alias in an_array_of_aliased_values (#13994)

This commit is contained in:
牧心
2022-04-10 16:42:17 +08:00
committed by GitHub
parent 8517b8f8b0
commit 11d9a67e3b
2 changed files with 17 additions and 2 deletions

View File

@ -293,3 +293,10 @@ fn test_can_copy_bits() {
// map not copyable
assert !can_copy_bits<map[string]int>()
}
type Str = string
fn test_alias_string_contains() {
names := [Str('')]
assert (Str('') in names) == true
}