Hi friends
In funKTionale I use declaration-site variance for Option and Either types
https://github.com/MarioAriasC/funKTionale/blob/master/src/main/kotlin/org/funktionale/option/Option.kt
In M10 the compiler is marking this as an error
public fun getOrElse(default: () -> T): T { return if (isEmpty()) { default() } else { get() } }
The error is "Error:(41, 41) Kotlin: Type parameter T is declared as 'out' but occurs in 'in' position in type () -> T"
Technically that “T” is an “out” 'cause is the return of “default” function… an out.
Am I right or I missing somethig?