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

fmt: keep constant sizes in struct field fixed array types (#9910)

This commit is contained in:
Lukas Neubert
2021-04-28 21:11:15 +02:00
committed by GitHub
parent 626517f5f7
commit a065d014a2
6 changed files with 32 additions and 11 deletions

View File

@ -1,3 +1,10 @@
const size = 5
struct Foo {
bar [size]int
baz [5]int
}
fn foo() [1]f32 {
return [f32(0.0)]!
}