Skip to content

Surprising overload resolution with Class & Method generics #8143

Answered by TahirAhmadov
jpieger asked this question in General
Discussion options

You must be logged in to vote

This is intended behavior. The call to Test in the Indirect is resolved to Test<T>(T? data) during compilation, at which point there is no knowledge at all about what T1 can be at runtime.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@HaloFour
Comment options

Answer selected by jpieger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants