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:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user