Skip to content

Assignement in tuple field alias - #2946

Open
jbdoderlein wants to merge 1 commit into
usethesource:mainfrom
jbdoderlein:fix-generic-tuple-alias-field-assign
Open

jbdoderlein wants to merge 1 commit into
usethesource:mainfrom
jbdoderlein:fix-generic-tuple-alias-field-assign

Conversation

@jbdoderlein

Copy link
Copy Markdown
Contributor

Follow-up of #2913: assigning a field of a tuple whose static type is a parameterized alias faile :

alias Pair[&T] = tuple[&T first, int second];

Pair[str] p = <"a", 1>;
p.second = 2;         // Undeclared field: second for Pair[str]

@sonarqubecloud

Copy link
Copy Markdown

@codecov

codecov Bot commented Oct 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 45%. Comparing base (d81f43c) to head (f219195).

Additional details and impacted files
@@           Coverage Diff           @@
##              main   #2946   +/-   ##
=======================================
- Coverage       45%     45%   -1%     
- Complexity    6811    6812    +1     
=======================================
  Files          844     844           
  Lines        68823   68823           
  Branches     10038   10038           
=======================================
- Hits         31427   31425    -2     
- Misses       35001   35004    +3     
+ Partials      2395    2394    -1     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This branch has not been deployed

No deployments
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.

1 participant