Skip to content

Incorrect CS8911 for 'global using unsafe' with pointer type #77389

Open
@Sergio0694

Description

@Sergio0694

Version Used: 4.13.0-3.25105.4 (400efa2) (and tested both VS 17.13.0 and VS 17.14 P1)

Steps to Reproduce:

  1. Checkout microsoft/CsWinRT@443d0c4
  2. Open src\cswinrt.sln
  3. Build WinRT.Runtime2.csproj

Ignore errors from other projects, just build this one project (it doesn't reference anything else).

Diagnostic Id: CS8911

Expected Behavior:

The code should compile just fine.

Actual Behavior:

The compiler produces an incorrect error:

Image

cc. @CyrusNajmabadi

Metadata

Metadata

Assignees

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions