-
Notifications
You must be signed in to change notification settings - Fork 54
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
Fix tests #1081
Fix tests #1081
Conversation
@@ -6,9 +6,6 @@ function errorFunction(int a, float b) { | |||
int _ = a * b; // @error * is not allowed with operands of different basic types |
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.
This is allowed now. The error here is the result type is float
. Let's check the other similar places as well
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.
Updated the test in b890cb7.
@@ -17,7 +14,7 @@ Labels: multiplicative-expr, int, float, decimal | |||
|
|||
function errorFunction(int a, float b, decimal c) { | |||
int _ = a * c; // @error * is not allowed with operands of different basic types | |||
decimal _ = c / a; // @error / is not allowed with operands of different basic types |
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.
Should we add some set of output
tests as well to cover allowed combinations
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.
Yes, already created ballerina-platform/ballerina-lang#35826. This PR is to just get the existing tests to pass.
Purpose
$title.