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
stringstr= GetWithPublicMethods ();if(String.Empty.Length ==0){str= GetWithPublicFields ();// dataflow will merge this with the value from the previous basic block
RequirePublicFields (str);// produces a warning}
In the above sample, at the point of calling RequirePublicFields the str local is guaranteed to have the value coming only from GetWithPublicFields(), so it should not warn. But linker doesn't correctly track the values in this case.
There is an existing test case which covers this, but we don't have an issue for it:
"fixes" a test case in `GetInterface` which was not meant to run into the wrong linker behavior as per bug dotnet/linker#2550
Commit migrated from dotnet/linker@8fc8c01
In the above sample, at the point of calling
RequirePublicFields
thestr
local is guaranteed to have the value coming only fromGetWithPublicFields()
, so it should not warn. But linker doesn't correctly track the values in this case.There is an existing test case which covers this, but we don't have an issue for it:
linker/test/Mono.Linker.Tests.Cases/DataFlow/LocalDataFlow.cs
Lines 224 to 232 in 5fca8b8
The text was updated successfully, but these errors were encountered: