mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
x.json2: fix direct sum type init notices
This commit is contained in:
@@ -63,7 +63,7 @@ fn test_fast_raw_decode() {
|
||||
s := '{"name":"Peter","age":28,"salary":95000.5,"title":2}'
|
||||
o := json2.fast_raw_decode(s) or {
|
||||
assert false
|
||||
json2.Any{}
|
||||
json2.Any(json2.null)
|
||||
}
|
||||
str := o.str()
|
||||
assert str == '{"name":"Peter","age":"28","salary":"95000.5","title":"2"}'
|
||||
|
||||
Reference in New Issue
Block a user