You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
They must complain about generics and members' declarations with or without implementation.
Examples:
traitMonad[U]:// generic type U
map(U=>?V):Monand[V] // generic type V
flatMap(U=>Monad[?V]):Monand[V]
flatMap(u: U=>Monad[?V]):Monand[V] =
u(???) // ??? equals to unimplementedtraitMonad[U]:// generic type U
map(U=>?V):Monand[V] // generic type V equals to == map[V](U => V): Monand[V]
flatMap(U=>Monad[?V]):Monand[V]
flatMap(u: U=>Monad[?V]):Monand[V] =
u(???) // ??? equals to unimplemented
The text was updated successfully, but these errors were encountered:
They must complain about generics and members' declarations with or without implementation.
Examples:
The text was updated successfully, but these errors were encountered: