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

Type compatibility check #170

Merged
merged 6 commits into from
Aug 7, 2022
Merged

Conversation

Fantoom
Copy link
Contributor

@Fantoom Fantoom commented Jul 31, 2022

Closes #160

Copy link
Owner

@ForNeVeR ForNeVeR left a 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?

Fantoom added 2 commits August 5, 2022 13:32
update ComparisonBinaryOperatorExpression
@Fantoom Fantoom marked this pull request as ready for review August 5, 2022 12:31
@ForNeVeR ForNeVeR self-assigned this Aug 6, 2022
@@ -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; }");
Copy link
Owner

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?

@ForNeVeR ForNeVeR assigned Fantoom and unassigned ForNeVeR Aug 6, 2022
Copy link
Owner

@ForNeVeR ForNeVeR left a comment

Choose a reason for hiding this comment

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

Awesome!

@ForNeVeR ForNeVeR merged commit ad0a6b3 into ForNeVeR:main Aug 7, 2022
@Fantoom Fantoom deleted the TypeCompatibilityCheck branch August 8, 2022 22:06
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.

Comparison operators: check type compatibility
2 participants