-
Notifications
You must be signed in to change notification settings - Fork 10.7k
[Blazor] CascadingTypeParameter problem #38479
Copy link
Copy link
Closed
dotnet/razor-compiler
#44Labels
Priority:1Work that is critical for the release, but we could probably ship withoutWork that is critical for the release, but we could probably ship withoutbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.feature-blazor-builtin-componentsFeatures related to the built in components we ship or could ship in the futureFeatures related to the built in components we ship or could ship in the future
Milestone
Metadata
Metadata
Assignees
Labels
Priority:1Work that is critical for the release, but we could probably ship withoutWork that is critical for the release, but we could probably ship withoutbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.feature-blazor-builtin-componentsFeatures related to the built in components we ship or could ship in the futureFeatures related to the built in components we ship or could ship in the future
Type
Fields
Give feedbackNo fields configured for issues without a type.
Hi,
I'm trying to refactor my existing components to use the newly introduced
CascadingTypeParameterattribute but I'm running into compiler errors.BlzTableGrid.razor (this is the main grid component)
BlzTableGrid.razor.cs
BlzGridBaseColumn.cs
BlzGridColumn.cs
TableGrid.razor (page consuming the grid component)
I'm getting the following compiler error for what seems to be each column in
TableGrid.razorpage:>C:\Projects\Blazor-Components\DemoApp\Microsoft.NET.Sdk.Razor.SourceGenerators\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Pages_Grid_TableGrid_razor.g.cs(563,29,563,34): error CS0449: The 'class', 'struct', 'unmanaged', 'notnull', and 'default' constraints cannot be combined or duplicated, and must be specified first in the constraints list.
Thank you for your help.