Closed ufcpp closed 5 years ago
What target framework?
netcoreapp3.0
The Debug
class is in
Assembly System.Diagnostics.Debug, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a // C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0-preview8-28405-07\ref\netcoreapp3.0\System.Diagnostics.Debug.dll
and its signature is
[Conditional("DEBUG")]
public static void Assert([DoesNotReturnIf(false)] bool condition)
{
}
Looks like the fix was merged, so will close this issue. Thanks for reporting it @ufcpp.
Version Used:
VS 16.3.0 Preview 2.0
Steps to Reproduce:
Expected Behavior:
Both
M1
andM2
have no warning.Actual Behavior:
M2
produces CS8602 warning.