Skip to content

EnC workspace does not report on generators diagnostics #70863

Closed

Description

Version Used: 4.8.0-3.final

Steps to Reproduce:

  1. dotnet new blazorwasm -o testblazor01
  2. cd testblazor01
  3. In testblazor01.csproj add the following:
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
  1. Run dotnet watch
  2. 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

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions