-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
DoneThis issue has been fixedThis issue has been fixedarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.
Milestone
Description
Not sure if this is a design issue. Came across this when migrating files to the new .net6 preview.
In .net 5, we can do this in a blazor page
- code starts here -
@typeparam T;
@inherits ComponentBase
@implements IDisposable; - code ends here -
But in .net6 preview 4 the above throws an error stating that it expects a whitespace after the typeparam which is a bit misleading as we simply need to remove the semicolon. It also.complains that dispose is not implemented. I had to change the code as such by removing the semicolons.
- code starts here -
@inherits ComponentBase
@implements IDisposable
@typeparam T - code ends here -
Metadata
Metadata
Assignees
Labels
DoneThis issue has been fixedThis issue has been fixedarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.