mirror of
https://github.com/vlang/v.git
synced 2025-09-14 15:02:33 +03:00
cgen: fix invalid operands to an_alias in an_array_of_aliased_values
(#13994)
This commit is contained in:
parent
8517b8f8b0
commit
11d9a67e3b
2 changed files with 17 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue