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:
@ -1,3 +1,10 @@
|
||||
const size = 5
|
||||
|
||||
struct Foo {
|
||||
bar [size]int
|
||||
baz [5]int
|
||||
}
|
||||
|
||||
fn foo() [1]f32 {
|
||||
return [f32(0.0)]!
|
||||
}
|
||||
|
Reference in New Issue
Block a user