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

cgen: fix octal and hex int literals

This commit is contained in:
Alexander Medvednikov
2020-03-26 17:14:24 +01:00
parent ed3e0c43bc
commit 75c2ef7947
4 changed files with 17 additions and 16 deletions

View File

@ -13,7 +13,7 @@ struct CC {
mut:
b BB
nums []int
aarr []A
aarr []AA
num int
}
@ -82,7 +82,7 @@ fn test_struct_levels() {
assert c.b.a.nums[1] == 2
c.b.a.nums [0] = 7
assert c.b.a.nums[0] == 7
c.aarr << A{val:8}
c.aarr << AA{val:8}
assert c.aarr.len == 1
assert c.aarr[0].val == 8
c.num = 20