Closed
Description
Version Used: 4.8.0-3.final
Steps to Reproduce:
dotnet new blazorwasm -o testblazor01
cd testblazor01
- In
testblazor01.csproj
add the following:
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- Run
dotnet watch
- In
Program.cs
, add the following at the end:
public static partial class Test
{
[System.Runtime.InteropServices.JavaScript.JSImport("test")]
public static partial void Test2(IDisposable test);
}
Diagnostic Id: None
Expected Behavior: Hot Reload fails with error SYSLIB1072: The type 'System.IDisposable' is not supported by source-generated JavaScript interop
Actual Behavior: No errors are reported.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment