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

@ -21,21 +21,21 @@ module strconv
struct Uint128 {
mut:
lo u64 = u64(0)
hi u64 = u64(0)
lo u64
hi u64
}
// dec64 is a floating decimal type representing m * 10^e.
struct Dec64 {
mut:
m u64 = 0
e int = 0
m u64
e int
}
// support union for convert f64 to u64
union Uf64 {
mut:
f f64 = 0
f f64
u u64
}