Beef icon indicating copy to clipboard operation
Beef copied to clipboard

[Bug] `Enum.GetMaxValue<T>()` crashes IDE when switching to Wasm32 platform.

Open m910q opened this issue 7 months ago • 0 comments

To replicate:

  1. Have the code below.
  2. Add a new "Wasm32" platform (It has to be this name, so I assume it has some specific configuration based on the name?)
  3. Switch to the new Wasm32 crashes IDE: Image
using System;
namespace Clean;

enum RefType : int {
    None = 0,
}

static class Program
{
    public const RefType MAX_VALID = Enum.GetMaxValue<RefType>();
    public static void Main() {}
}

m910q avatar Jun 28 '25 15:06 m910q