Add quick-fix for type variance conflict #KT-23082 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
ddf647ae96
commit
6b37e40f99
@@ -0,0 +1,7 @@
|
||||
// "Remove 'in' variance from 'T'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
class Test<in T> {
|
||||
fun foo(t: T) {}
|
||||
fun bar(): <caret>T = TODO()
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// "Remove 'in' variance from 'T'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
class Test<T> {
|
||||
fun foo(t: T) {}
|
||||
fun bar(): <caret>T = TODO()
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// "Remove 'out' variance from 'T'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
class Test<out T> {
|
||||
fun foo(t: <caret>T) {}
|
||||
fun bar(): T = TODO()
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// "Remove 'out' variance from 'T'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
class Test<T> {
|
||||
fun foo(t: <caret>T) {}
|
||||
fun bar(): T = TODO()
|
||||
}
|
||||
Reference in New Issue
Block a user