Don't write nop for extension lambda during inline
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
package noParameterLambdaArgumentCallInInline
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
lookAtMe {
|
||||
val c = "c"
|
||||
}
|
||||
}
|
||||
|
||||
inline fun lookAtMe(f: String.() -> Unit) {
|
||||
val a = "a"
|
||||
//Breakpoint!
|
||||
"123".f()
|
||||
val b = "b"
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
LineBreakpoint created at noParameterExtensionLambdaArgumentCallInInline.kt:12
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
noParameterExtensionLambdaArgumentCallInInline.kt:12
|
||||
noParameterExtensionLambdaArgumentCallInInline.kt:13
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package noParameterLambdaArgumentCallInInline
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
"123".lookAtMe {
|
||||
val c = "c"
|
||||
}
|
||||
}
|
||||
|
||||
inline fun String.lookAtMe(f: String.() -> Unit) {
|
||||
val a = "a"
|
||||
//Breakpoint!
|
||||
f()
|
||||
val b = "b"
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
LineBreakpoint created at noParameterExtensionLambdaArgumentCallInInline2.kt:12
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
noParameterExtensionLambdaArgumentCallInInline2.kt:12
|
||||
noParameterExtensionLambdaArgumentCallInInline2.kt:13
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
package noParameterLambdaArgumentCallInInline
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
lookAtMe {
|
||||
val c = "c"
|
||||
}
|
||||
}
|
||||
|
||||
inline fun lookAtMe(f: String.() -> Unit) {
|
||||
val a = "a"
|
||||
//Breakpoint!
|
||||
"123".
|
||||
f()
|
||||
val b = "b"
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
LineBreakpoint created at noParameterExtensionLambdaArgumentCallInInline3.kt:12
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
noParameterExtensionLambdaArgumentCallInInline3.kt:12
|
||||
noParameterExtensionLambdaArgumentCallInInline3.kt:5
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
Reference in New Issue
Block a user