1
0
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:
Delyan Angelov
2021-04-11 11:28:52 +03:00
parent 954c436d28
commit c939e4df97
3 changed files with 10 additions and 10 deletions

View File

@@ -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"}'