Skip to content

Allow generic type constraints #8433

Closed
@rkone

Description

@rkone

We should be able to add generic constraints to our typeparam. For example:
@typeparam TEntity where TEntity : IEntity

As of preview3 gives the error "Unexpected literal following the 'typeparam' directive".

Metadata

Metadata

Assignees

Labels

Components Big RockThis issue tracks a big effort which can span multiple issuesDoneThis issue has been fixedaffected-fewThis issue impacts only small number of customersarea-blazorIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing oneseverity-majorThis label is used by an internal tool

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions