Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のジェネリック型には、型パラメーターがA2回含まれています。
A
class Something<B<A>, A>
ですでに与えられているclass Something<B<A>>からこそ書けるのではないかと思います。AB<A>
class Something<B<A>>
B<A>
それは不可能だと思いますが、何か見落としているのかもしれません。
質問に公式に答えるには:コンパイラはこの方法で型を推測することはできません。