The language reference says:
- The dispersion position of the parameter of the method is opposite to the dispersion position of the proposal to include the parameter.
- .
- .
, , ?
class Moo[+A, -B] {
def foo[X] (bar : Y) ...
, Y , . B , A.
, X ? A B - , !
, , , . X , . X, :
class Moo[+A, -B] {
def foo[X >: Z] (bar : B) ...
, , Z A, B, ? , Z X, X , , Z . :
abstract class Moo[+A, -B] {
def foo[X >: A] (bar : B)
}
defined class Moo
, !