-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
checker: fix return type of alias primitive operator overloading #21663
Conversation
…ath { sin, cos }`" This reverts commit ddf0468.
9601b43
to
97a10ac
Compare
I don't understand why https://github.com/vlang/v/actions/runs/9468240132/job/26089267012?pr=21663 is failing. The fail is unrelated to my changes. |
@@ -435,7 +435,27 @@ fn (mut c Checker) infix_expr(mut node ast.InfixExpr) ast.Type { | |||
c.check_div_mod_by_zero(node.right, node.op) | |||
} | |||
|
|||
return_type = promoted_type | |||
left_sym = c.table.sym(unwrapped_left_type) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add comments for such large code blocks to explain what they are for
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok! will add this in my next PR
…ases of primitive types (fix vlang#21654) (vlang#21663)
Fixes #21654