You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
internal UnboundLambda WithNullableState(Binder binder, NullableWalker.VariableState nullableState)
{
var data = Data.WithCaching(true);
var lambda = new UnboundLambda(Syntax, data, nullableState, HasErrors);
data.SetUnboundLambda(lambda);
return lambda;
}
It looks like the data.SetUnboundLambda(lambda); line can change parent for an existing UnboundLambdaState instance, and the instance will be shared between two UnboundLambda instances.
The text was updated successfully, but these errors were encountered:
Suspicious code is added to UnboundLambda.WithNullableState function here https://github.com/dotnet/roslyn/pull/40534/files#diff-b4c0d0abc290a3696848da779340f860R351:
It looks like the
data.SetUnboundLambda(lambda);
line can change parent for an existing UnboundLambdaState instance, and the instance will be shared between two UnboundLambda instances.The text was updated successfully, but these errors were encountered: