-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Open
Labels
Description
After the recent fixes the issue with
PCFieldInitTestbecomes the same as the C3 test in #3452. The primary constructor parameter wrongly gets referenced outside of field initialization and generates an extra backing field when recompiled. ForPCFieldInitTestit now looks like this:internal abstract class PCFieldInitTest(StringComparison value) { private StringComparison _value = value; public bool Func() { // Should be `_value` not `value` return value == StringComparison.Ordinal; } }Sorry if the naming difference was too subtle, I could have made it clearer.