Razor Compiler created generic class constrains in wrong order and this result in CS0449 #7935
Closed
1 task done
Labels
Milestone
Is there an existing issue for this?
Describe the bug
Razor Compiler created generic class constrains in wrong order
internal static class TypeInference
{
public static void CreateEBQuickGrid_0(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder, int seq, int __seq0, global::System.Object __arg0, int __seq1, global::System.Object __arg1, int __seq2, global::System.Linq.IQueryable __arg2, int __seq3, global::System.Func<TGridItem, global::System.Object> __arg3, int __seq4, global::Microsoft.AspNetCore.Components.EventCallback __arg4, int __seq5, TGridItem __arg5, int __seq6, global::Microsoft.AspNetCore.Components.RenderFragment __arg6, int __seq7, System.Action<global::EBBetreuungWeb.Client.Components.EBQuickGrid> __arg7)
where TGridItem : global::EBBetreuungWeb.Models.Data.IGetKey, class
Expected Behavior
where TGridItem : global::class,EBBetreuungWeb.Models.Data.IGetKey should work
Steps To Reproduce
'''
2.a) cs
2.b razor
razor compiler generate
Exceptions (if any)
Severity Code Description Project File Line Suppression State
Error CS0449 The 'class', 'struct', 'unmanaged', 'notnull', and 'default' constraints cannot be combined or duplicated, and must be specified first in the constraints list.
.NET Version
7.0.100
Anything else?
No response
The text was updated successfully, but these errors were encountered: