Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle delete test #117

Merged
merged 2 commits into from
Aug 11, 2024
Merged

Handle delete test #117

merged 2 commits into from
Aug 11, 2024

Conversation

JalonSolov
Copy link
Contributor

No description provided.

@JalonSolov JalonSolov merged commit 778b67e into vlang:master Aug 11, 2024
3 checks passed
@JalonSolov JalonSolov deleted the fix_delete branch August 11, 2024 02:56
if fun is Ident && fun.name == 'delete' {
arg0 := call.args[0]
arg1 := call.args[1]
if arg0 is Ident && arg1 is BasicLit {
Copy link
Member

@medvednikov medvednikov Aug 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

arg0 can be any expr, so app.expr(arg0) should be used instead

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in the next PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants