-
Notifications
You must be signed in to change notification settings - Fork 137
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 migration of built-in types #3205
Conversation
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:master commit a0dd6cf Collapsed results for better readability
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3205 +/- ##
=======================================
Coverage 80.74% 80.75%
=======================================
Files 380 380
Lines 93307 93359 +52
=======================================
+ Hits 75339 75389 +50
- Misses 15260 15262 +2
Partials 2708 2708
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
6fd3ddb
to
356d854
Compare
Work towards #3192
Description
Built-in types (location == nil) may be represented as
CompositeStaticType
instead of the simplifiedPrimitiveStaticType
. This is because we're not properly normalizing the types e.g. during import, in the type construction functions, etc.Start cleaning this up and handling this properly by extending the static type migration to convert
CompositeStaticType
toPrimitiveStaticType
, if the composite static type refers to a built-in type that should be represented by a primitive static type.In follow up PRs we should clean up the incorrect representation / construction (see examples above).
master
branchFiles changed
in the Github PR explorer