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

checker: test for unnecessary default struct field values

This commit is contained in:
Alexander Medvednikov
2020-09-09 13:59:52 +02:00
parent eb95a4333a
commit e018509ba6
5 changed files with 33 additions and 8 deletions

View File

@@ -22,14 +22,14 @@ module strconv
// dec32 is a floating decimal type representing m * 10^e.
struct Dec32 {
mut:
m u32 = 0
e int = 0
m u32
e int
}
// support union for convert f32 to u32
union Uf32 {
mut:
f f32 = 0
f f32
u u32
}