次のようなクラスがあります。
class X[A <: Throwable, B, C](b: B, c: C)
A、B、C は推論できるので、次のようにインスタンス化できます。
val x = new X(3, 4)
これにより、 X[Nothing, Int, Int] が得られます-多くの場合、私が望むものです。
しかし、A を Nothing 以外のものに指定したい場合があります (AssertionError など)。これは、B と C も指定せずに可能ですか。次の行に沿った構文を想像しました。
val x = new X[AssertionError](3, 4)
val x = new X[AssertionError, _, _](3, 4)
val x = new X[AssertionError,,](3, 4)
しかし、明らかにこれは機能しません。
これにはいくつかの構文がありますか、または同じ結果を達成できる方法はありますか?