Feedback
Generic methods accept matching constructed class parameters
- Status
- Fixed
- Fixed in
- v26.10.3
- Area
- compiler
- Source discussion
- -
- Last updated
- 2026-10-20
Upvotes
0 upvotes
Uses your Objo forum account.
Public summary
A generic method can reject a matching constructed class parameter, such as passing Box(Of String) to a parameter declared as Box(Of T), even when String is explicitly supplied for T. Matching constructed parameter and return types should use the method's selected type arguments.