v icon indicating copy to clipboard operation
v copied to clipboard

parser: allow array cast syntax

Open felipensp opened this issue 2 years ago • 2 comments

Fix #10763

🤖[deprecated] Generated by Copilot at 7492d0f

This pull request fixes a bug in type casting between array types and implements a feature for parsing JSON arrays with json.decode. The changes affect the files vlib/v/checker/checker.v and vlib/v/parser/expr.v.

🤖[deprecated] Generated by Copilot at 7492d0f

  • Prevent invalid type casts between different array types (link)
  • Allow more flexible type arguments for json.decode function (link)

felipensp avatar Nov 26 '23 00:11 felipensp

Is this ready to move to review? All checks passed last time they were run.

JalonSolov avatar Dec 23 '23 04:12 JalonSolov

Is this ready to move to review? All checks passed last time they were run.

My plan is add map support too. This is the reason to be open yet.

felipensp avatar Dec 23 '23 04:12 felipensp

Map support can be added as another PR @spytheman . 👍🏻

felipensp avatar Dec 10 '24 10:12 felipensp