Jeremy
02/26/2019, 9:34 AMPavlo Liapota
02/26/2019, 9:52 AMrobstoll
02/26/2019, 10:20 AMPavlo Liapota
02/26/2019, 10:38 AMfun <B, A : B> Test<A>.test(): B
Jeremy
02/26/2019, 10:56 AM[B >: A]
which means the type B is supertype of A. How can I implement this code to kotlin???
sealed abstract class Option[+A] extends Product with Serializable {
self =>
...
@inline final def getOrElse[B >: A](default: => B): B =
if (isEmpty) default else this.get
...
Pavlo Liapota
02/26/2019, 11:11 AMJeremy
02/26/2019, 11:13 AM