Add type arguments more accurately during inlining
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
fun bar(): List<Int> = listOf()
|
||||
|
||||
fun f() {
|
||||
val vv = <caret>bar()
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun f() {
|
||||
val vv = listOf<Int>()
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
interface SomeFace
|
||||
interface GeneOut<out T> {}
|
||||
object Empty : GeneOut<Nothing>
|
||||
fun <T> downUnder(): GeneOut<T> = Empty
|
||||
fun downParameter(p: GeneOut<SomeFace>) = p
|
||||
|
||||
fun callDown() {
|
||||
// BUG: KT-17402
|
||||
val v2 = <caret>downParameter(downUnder())
|
||||
}
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
interface SomeFace
|
||||
interface GeneOut<out T> {}
|
||||
object Empty : GeneOut<Nothing>
|
||||
fun <T> downUnder(): GeneOut<T> = Empty
|
||||
|
||||
fun callDown() {
|
||||
// BUG: KT-17402
|
||||
val v2 = downUnder()
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
fun bar(): List<Int> = listOf()
|
||||
|
||||
fun ff() {
|
||||
val copy: List<Int> = ArrayList(<caret>bar())
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
fun ff() {
|
||||
val copy: List<Int> = ArrayList(listOf())
|
||||
}
|
||||
Reference in New Issue
Block a user