Add function name to fake local variable for inline argument
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
package nestedInlineArguments
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val list1 = listOf("a")
|
||||
val list2 = listOf(Bar())
|
||||
list1.map { list2.foo(1) }
|
||||
}
|
||||
|
||||
inline fun <reified T: Bar> List<T>.foo(key: Int): T? {
|
||||
// EXPRESSION: it.i
|
||||
// RESULT: 1: I
|
||||
//Breakpoint! (lambdaOrdinal = 0)
|
||||
return this.firstOrNull { it.i == key }
|
||||
}
|
||||
|
||||
open class Foo
|
||||
open class Bar {
|
||||
val i = 1
|
||||
}
|
||||
Reference in New Issue
Block a user