Add quick-fix for type variance conflict #KT-23082 Fixed

This commit is contained in:
Toshiaki Kameyama
2018-05-17 16:47:57 +03:00
committed by Mikhail Glukhikh
parent ddf647ae96
commit 6b37e40f99
8 changed files with 122 additions and 0 deletions
+7
View File
@@ -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()
}
+7
View File
@@ -0,0 +1,7 @@
// "Remove 'in' variance from 'T'" "true"
// WITH_RUNTIME
class Test<T> {
fun foo(t: T) {}
fun bar(): <caret>T = TODO()
}
+7
View File
@@ -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()
}