Unknown type for json.decode with nested generics #22220
Labels
Bug
This tag is applied to issues which reports bugs.
Modules: JSON
Bugs/feature requests, that are related to `json` and `x.json2` modules.
Could be linked to #19045, but there are no anonymous functions here.
Probably some extension of #18308 as well.
V doctor:
What did you do?
https://play.vlang.io/p/685a11aa5a
./v -g -o vdbg cmd/v && ./vdbg pg-generics.v
What did you expect to see?
No error, the type
Box[Chocolate]
should not be unknownWhat did you see instead?
I also saw that declaring explicitly a variable with that type, or using directly json.decode would avoid the error.
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered: