Skip to content

Conversation

mbovel
Copy link
Member

@mbovel mbovel commented Sep 3, 2025

Another take on #22620, similar to #23378, but it prevents removing the Local modifiers from constructor parameters that are not vals. To achieve this, we introduce a new flag, NotAField, to record when a class parameter was not declared as a val.

I tried using the existing NonMember flag instead of adding a new one, but that caused unintended side effects for value classes.

@mbovel mbovel force-pushed the mb/22620 branch 4 times, most recently from b9d1a28 to 1db0b01 Compare September 3, 2025 19:33
@mbovel
Copy link
Member Author

mbovel commented Sep 4, 2025

This PR results in cyclic reference errors in some community build projects. I am wondering if that is caused by reading the NotAField flag and if that could be avoided by adding it to FromStartFlags.

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