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

Fix BInvokableType record fields of effective types not inheriting readonly flag #42582

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Thushara-Piyasekara
Copy link
Contributor

@Thushara-Piyasekara Thushara-Piyasekara commented Apr 18, 2024

Purpose

Fixes #42439

Approach

When generating the effective types, the original type is cloned. But during the cloning process the original flags of BInvokableType fields of BRecordType were not inherited properly. With this PR we fixed this inheritance issue.

Samples

Remarks

Check List

  • Read the Contributing Guide
  • Updated Change Log
  • Checked Tooling Support (#)
  • Added necessary tests
    • Unit Tests
    • Spec Conformance Tests
    • Integration Tests
    • Ballerina By Example Tests
  • Increased Test Coverage
  • Added necessary documentation
    • API documentation
    • Module documentation in Module.md files
    • Ballerina By Examples

@Thushara-Piyasekara Thushara-Piyasekara marked this pull request as ready for review April 18, 2024 07:41
@Thushara-Piyasekara Thushara-Piyasekara changed the title Fix BInvokableType fields of effective types not inheriting readonly flag Fix BInvokableType record fields of effective types not inheriting readonly flag Apr 19, 2024
Copy link

github-actions bot commented May 4, 2024

This PR has been open for more than 15 days with no activity. This will be closed in 3 days unless the stale label is removed or commented.

@github-actions github-actions bot added the Stale label May 4, 2024
Copy link

github-actions bot commented May 7, 2024

Closed PR due to inactivity for more than 18 days.

@github-actions github-actions bot closed this May 7, 2024
@xlight05 xlight05 reopened this May 14, 2024
Copy link

codecov bot commented May 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.68%. Comparing base (b953386) to head (6f80e98).
Report is 1 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master   #42582      +/-   ##
============================================
- Coverage     77.69%   77.68%   -0.02%     
+ Complexity    51483    51472      -11     
============================================
  Files          2933     2933              
  Lines        204235   204235              
  Branches      26716    26716              
============================================
- Hits         158678   158651      -27     
- Misses        36935    36958      +23     
- Partials       8622     8626       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

This PR has been open for more than 15 days with no activity. This will be closed in 3 days unless the stale label is removed or commented.

@github-actions github-actions bot added the Stale label Jun 23, 2024
@github-actions github-actions bot removed the Stale label Jun 26, 2024
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.

[Bug]: Incorrect compiler incompatible types error when a type is of the expected type
4 participants