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
{{ message }}
Repository navigation
[hot_reload] Mono should ignore Param table row updates #56574
public class MethodBody1 {
public static string StaticMethod1 () {
Func <string,string> fn = static (s) => s + "G";
return fn ("OLD STRIN");
}
}
New code:
public class MethodBody1 {
public static string StaticMethod1 () {
Func <string,string> fn = static (s) => s + "G";
return fn ("NEW STRIN");
}
}
Roslyn will emit a param update for 's' even though nothing about the parameter has changed.
(Note that to get a clean delta it's necessary to use hotreload-utils that includes dotnet/hotreload-utils#65, otherwise the delta will be bloated with unnecessary field and method additions for the (unchanged) lambda).
Activity
lambdageek commentedon Aug 12, 2021
The issue description is misleading. Roslyn generates these Param table updates for normal methods, too. Not just for lambdas.
In this case, too Roslyn emits a Param update for
builder.