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

ci: fix failing program_test.v due to deprecation warnings

This commit is contained in:
Delyan Angelov 2021-08-04 12:58:06 +03:00
parent 5162c257a2
commit 1bf6d04e37
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -128,7 +128,7 @@ fn main() {
println(*d_arr[1][0]) // 1
}
{
// test assign
// test assign
mut arr := [2, 4, 8, 16, 32, 64, 128]
arr[0] = 2
arr[1] &= 255
@ -1064,20 +1064,20 @@ fn main() {
ivan := Person{
name: 'ivan'
nums: [1, 2, 3]
kv: map{
kv: {
'aaa': '111'
}
}
people := [Person{
name: 'ivan'
nums: [1, 2, 3]
kv: map{
kv: {
'aaa': '111'
}
}, Person{
name: 'bob'
nums: [2]
kv: map{
kv: {
'bbb': '222'
}
}]
@ -1088,20 +1088,20 @@ fn main() {
ivan := Person{
name: 'ivan'
nums: [1, 2, 3]
kv: map{
kv: {
'aaa': '111'
}
}
people := [Person{
name: 'ivan'
nums: [1, 2, 3]
kv: map{
kv: {
'aaa': '111'
}
}, Person{
name: 'bob'
nums: [2]
kv: map{
kv: {
'bbb': '222'
}
}]