Minor: do not use property in twoLambdasOnOneLineSecond test
This commit is contained in:
@@ -2,9 +2,12 @@ LineBreakpoint created at twoLambdasOnOneLineSecond.kt:9
|
|||||||
!JDK_HOME!\bin\java -agentlib:jdwp=transport=dt_socket,address=!HOST_NAME!:!HOST_PORT!,suspend=y,server=n -Dfile.encoding=!FILE_ENCODING! -classpath !APP_PATH!\classes;!KOTLIN_RUNTIME!;!CUSTOM_LIBRARY!;!RT_JAR! twoLambdasOnOneLineSecond.TwoLambdasOnOneLineSecondPackage
|
!JDK_HOME!\bin\java -agentlib:jdwp=transport=dt_socket,address=!HOST_NAME!:!HOST_PORT!,suspend=y,server=n -Dfile.encoding=!FILE_ENCODING! -classpath !APP_PATH!\classes;!KOTLIN_RUNTIME!;!CUSTOM_LIBRARY!;!RT_JAR! twoLambdasOnOneLineSecond.TwoLambdasOnOneLineSecondPackage
|
||||||
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||||
twoLambdasOnOneLineSecond.kt:9
|
twoLambdasOnOneLineSecond.kt:9
|
||||||
twoLambdasOnOneLineSecond.kt:16
|
twoLambdasOnOneLineSecond.kt:14
|
||||||
twoLambdasOnOneLineSecond.kt:9
|
twoLambdasOnOneLineSecond.kt:9
|
||||||
twoLambdasOnOneLineSecond.kt:16
|
twoLambdasOnOneLineSecond.kt:0
|
||||||
|
twoLambdasOnOneLineSecond.kt:14
|
||||||
|
twoLambdasOnOneLineSecond.kt:9
|
||||||
|
twoLambdasOnOneLineSecond.kt:14
|
||||||
twoLambdasOnOneLineSecond.kt:9
|
twoLambdasOnOneLineSecond.kt:9
|
||||||
Compile bytecode for it
|
Compile bytecode for it
|
||||||
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||||
|
|||||||
+4
-6
@@ -4,15 +4,13 @@ fun main(args: Array<String>) {
|
|||||||
val a = A()
|
val a = A()
|
||||||
// EXPRESSION: it
|
// EXPRESSION: it
|
||||||
// RESULT: 2: I
|
// RESULT: 2: I
|
||||||
// STEP_INTO: 4
|
// STEP_INTO: 7
|
||||||
//Breakpoint!
|
//Breakpoint!
|
||||||
a.foo { counter++; a }.foo { a }
|
a.foo(1) { a }.foo(2) { a }
|
||||||
}
|
}
|
||||||
|
|
||||||
var counter = 1
|
|
||||||
|
|
||||||
class A {
|
class A {
|
||||||
fun foo(f: (Int) -> A): A {
|
fun foo(i: Int, f: (Int) -> A): A {
|
||||||
return f(counter)
|
return f(i)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user