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

checker: fix error pos on default value (#6338)

This commit is contained in:
Daniel Däschle
2020-09-09 15:34:41 +02:00
committed by GitHub
parent 78e28a72ed
commit 3a146a6dbe
17 changed files with 56 additions and 43 deletions

View File

@ -62,7 +62,7 @@ mut:
state []u64 = calculate_state(util.time_seed_array(2), mut []u64{len: nn})
mti int = nn
next_rnd u32
has_next bool = false
has_next bool
}
fn calculate_state(seed_data []u32, mut state []u64) []u64 {

View File

@ -9,7 +9,7 @@ import rand.util
pub struct SplitMix64RNG {
mut:
state u64 = util.time_seed_64()
has_extra bool = false
has_extra bool
extra u32
}

View File

@ -17,7 +17,7 @@ const (
pub struct WyRandRNG {
mut:
state u64 = util.time_seed_64()
has_extra bool = false
has_extra bool
extra u32
}