-
Notifications
You must be signed in to change notification settings - Fork 42
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
Type compatibility check #170
Conversation
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.
Could you please add more tests of comparing numbers of various types and booleans?
Cesium.CodeGen/Ir/Expressions/BinaryOperators/ComparisonBinaryOperatorExpression.cs
Outdated
Show resolved
Hide resolved
update ComparisonBinaryOperatorExpression
@@ -173,6 +173,9 @@ public Task PrimitiveTypes() => DoTest(@"int main(void) | |||
[Fact] | |||
public Task EqualToOperator() => DoTest(@"int main() { return 1 == 2; }"); | |||
|
|||
[Fact] | |||
public Task EqualToOperatorBoolToIntConversion() => DoTest(@"int main() { return 2 == 2; }"); |
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.
Let's add an integration test checking that this conversion really works?
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.
Awesome!
Closes #160