Blazor component with generics incorrectly invokes Func<T[]> that is a parameter #34711
Labels
area-blazor
Includes: Blazor, Razor Components
✔️ Resolution: Duplicate
Resolved as a duplicate of another issue
Status: Resolved
Uh oh!
There was an error while loading. Please reload this page.
If a generic component has a parameter property:
When you use the component the GetItems will cause a build fail with the error "The type or namespace name T could not be found" since it generates this code for the page:
But there is no definition of T there as T is defined on the comonent, it should generate as string[] not T[]
To Reproduce
With the component above create the following page
As soon as you try to compile it will fail
I have tested this on 6.0.0-preview.6.21355.2
The text was updated successfully, but these errors were encountered: