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

parser: warn when fixed-size ArrayInit doesn't have trailing {}. (#6137)

This commit is contained in:
Nick Treleaven
2020-08-16 03:54:05 +01:00
committed by GitHub
parent a02593204f
commit bab5c21224
15 changed files with 27 additions and 28 deletions

View File

@@ -77,7 +77,7 @@ pub fn f64_to_str_lnd(f f64, dec_digit int) string {
m_sgn_flag := false
mut sgn := 1
mut b := [26]byte
mut b := [26]byte{}
mut d_pos := 1
mut i := 0
mut i1 := 0

View File

@@ -242,7 +242,7 @@ pub fn f64_to_str_l(f f64) string {
m_sgn_flag := false
mut sgn := 1
mut b := [26]byte
mut b := [26]byte{}
mut d_pos := 1
mut i := 0
mut i1 := 0