-
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
Fix positioning of default function conflict errors #2665
Conversation
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:master commit 24ca444 Collapsed results for better readability
|
Codecov Report
@@ Coverage Diff @@
## master #2665 +/- ##
==========================================
- Coverage 78.57% 78.57% -0.01%
==========================================
Files 338 338
Lines 78217 78216 -1
==========================================
- Hits 61457 61456 -1
Misses 14474 14474
Partials 2286 2286
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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!
So the issue was mostly in DefaultFunctionConflictError
error, because it reported a location in a different file? We might later want to scan all other errors to see if there are any similar cases.
Yeah that and also |
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!
Fixes error positioning for two errors that could try to report errors positioned in upstream files. Cadence doesn't allow this currently, so the error would be reported at the same row/column location in the current file, which was nonsensical. Instead, we position the errors at the definition of the conflicting composite type.
master
branchFiles changed
in the Github PR explorer