Voyager icon indicating copy to clipboard operation
Voyager copied to clipboard

Source Generator error when returning an anonymous type

Open smithgeek opened this issue 7 months ago • 0 comments

If a function tries to return an anonymous type the source generator generates invalid code causing hard to understand compilation errors.

public IResult Get()
{
    return TypedResults.Ok(new { Value = 3 });
}

smithgeek avatar Jun 27 '24 18:06 smithgeek