You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code produces a PlatformNotSupportedException when compiled using the NativeAOT toolchain with all the default settings:
vara=new[]{42,42,42};Console.WriteLine(a.Length);
Unhandled Exception: System.PlatformNotSupportedException: Operation is not supported on this platform.
at Internal.Runtime.CompilerHelpers.ThrowHelpers.ThrowPlatformNotSupportedException() + 0x24
at Program.<Main>$(String[]) + 0x9
at dotnet7aot!<BaseAddress>+0x1b3f13
Whether it crashes or not somehow depends on the contents of the array. For instance, this code will run just fine:
The following code produces a
PlatformNotSupportedException
when compiled using the NativeAOT toolchain with all the default settings:Whether it crashes or not somehow depends on the contents of the array. For instance, this code will run just fine:
csproj:
Platform: win-x64
SDK: 7.0.100-preview.7.22377.5
ILCompiler: 7.0.0-preview.7.22375.6
The text was updated successfully, but these errors were encountered: