Add variance modifier fix corrected: primary constructor parameters are taken into account
This commit is contained in:
+5
-1
@@ -21,4 +21,8 @@ abstract class AbstractOut<T> {
|
||||
abstract class AbstractIn<T>(private val foo: T) {
|
||||
fun bar(arg: T) = foo == arg
|
||||
}
|
||||
interface Empty<T>
|
||||
interface Empty<T>
|
||||
|
||||
abstract class AbstractInv<T>(var foo: T)
|
||||
|
||||
class InvUser<T>(val user: AbstractInv<T>)
|
||||
Reference in New Issue
Block a user