-
Notifications
You must be signed in to change notification settings - Fork 140
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
Disallow arithmetic, comparison and bitwise operations on number supertypes #1360
Conversation
leftType, rightType Type, | ||
leftIsInvalid, rightIsInvalid, anyInvalid bool, | ||
anyInvalid bool, |
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.
Cleaning up some unused params
@@ -837,252 +835,3 @@ func TestInterpretSaturatedArithmeticFunctions(t *testing.T) { | |||
test(ty, "Divide", testCase.divide) | |||
} | |||
} | |||
|
|||
func TestInterpretArithmeticOnSubTypes(t *testing.T) { |
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 test is no longer valid, as it will never reach the runtime
ast.OperationGreater, | ||
ast.OperationGreaterEqual, | ||
ast.OperationLess, | ||
ast.OperationLessEqual, |
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.
Similarly, these tests (i.e: checking the runtime behavior for these operations) are no longer valid, since they don't reach runtime
Codecov Report
@@ Coverage Diff @@
## master #1360 +/- ##
==========================================
- Coverage 75.78% 73.03% -2.76%
==========================================
Files 280 279 -1
Lines 38779 38794 +15
==========================================
- Hits 29390 28333 -1057
- Misses 8039 9023 +984
- Partials 1350 1438 +88
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:master commit 86d42e3 Results
|
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.
Nice!
Co-authored-by: Bastian Müller <[email protected]>
…d future missing functions
Took the liberty to quickly fix the PR |
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.
Looks good! Nice work 👍
Closes https://github.com/dapperlabs/cadence-private-issues/issues/10
Description
This is a reference implementation for the changes proposed on FLIP: onflow/flow#729
master
branchFiles changed
in the Github PR explorer