Inline refactoring: should add explicit type argument for parameters
#KT-17402 Fixed
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
interface SomeFace
|
||||
interface GeneOut<out T> {}
|
||||
object Empty : GeneOut<Nothing>
|
||||
fun <T> downUnder(): GeneOut<T> = Empty
|
||||
fun downReturn<caret>(): GeneOut<SomeFace> = downUnder()
|
||||
fun callDown() {
|
||||
val v1 = downReturn()
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
interface SomeFace
|
||||
interface GeneOut<out T> {}
|
||||
object Empty : GeneOut<Nothing>
|
||||
fun <T> downUnder(): GeneOut<T> = Empty
|
||||
fun callDown() {
|
||||
val v1 = downUnder<SomeFace>()
|
||||
}
|
||||
-1
@@ -5,6 +5,5 @@ fun <T> downUnder(): GeneOut<T> = Empty
|
||||
fun downParameter(p: GeneOut<SomeFace>) = p
|
||||
|
||||
fun callDown() {
|
||||
// BUG: KT-17402
|
||||
val v2 = <caret>downParameter(downUnder())
|
||||
}
|
||||
Vendored
+1
-2
@@ -4,6 +4,5 @@ object Empty : GeneOut<Nothing>
|
||||
fun <T> downUnder(): GeneOut<T> = Empty
|
||||
|
||||
fun callDown() {
|
||||
// BUG: KT-17402
|
||||
val v2 = downUnder()
|
||||
val v2 = downUnder<SomeFace>()
|
||||
}
|
||||
Reference in New Issue
Block a user