Skip to content

[mono] class-setup-vtable.c:1747, condition `is_ok (error)' not met, function:mono_class_setup_vtable_general, VAR 1 (T) cannot be expanded in this context with 1 instantiations #61244

Closed
@JinShil

Description

@JinShil

Description

Using Blazor WebAssembly project. I have a class hierarchy that seems to cause an assertion failure in the mono runtime. I've created a solution and reduced the code as much as I can and attached it to this issue. The project works fine in a Blazor Server (non-WebAssembly) project.

The projects were created with Visual Studio 2022 using the 6.0.100-rc.2.21505.57 SDK.

ComfileTech.Framework.zip

Reproduction Steps

Open the attached solution and run the project ending in ".Server" (ASP.Net hosted Blazor Web Assembly project). View the result in a web browser.

Expected behavior

No assertion failure.

Actual behavior

Assertion failure. See image below:

image

Regression?

I have not tested this code in a prior version of the .Net Framework.

Known Workarounds

No known workarounds.

Configuration

6.0.100-rc.2.21505.57
Tested on Windows 10 64bit
Tested using the Brave web browser.

Other information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions