mirror of
https://github.com/vlang/v.git
synced 2025-09-18 03:46:36 -04:00
This commit is contained in:
parent
e93c344b56
commit
4578af33aa
@ -9,7 +9,6 @@ pub fn decode[T](val string) !T {
|
||||
|
||||
fn (mut decoder Decoder) decode_value[T](mut val T) ! {
|
||||
$if T.unaliased_typ is $array {
|
||||
// checking wrongly. `decode_array` think that `[]?int` is `[]int`
|
||||
decoder.decode_array(mut val)!
|
||||
return
|
||||
} $else $if T.unaliased_typ is $struct {
|
||||
|
Loading…
x
Reference in New Issue
Block a user