From f742188df961ef6c75ed8d78f7ee8f6d693ed4e5 Mon Sep 17 00:00:00 2001 From: Natalia Ukhorskaya Date: Wed, 13 May 2015 13:59:16 +0300 Subject: [PATCH] Minor: do not use property in twoLambdasOnOneLineSecond test --- .../tinyApp/outs/twoLambdasOnOneLineSecond.out | 7 +++++-- .../lambdas/twoLambdasOnOneLineSecond.kt | 12 +++++------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/idea/testData/debugger/tinyApp/outs/twoLambdasOnOneLineSecond.out b/idea/testData/debugger/tinyApp/outs/twoLambdasOnOneLineSecond.out index 883ab4b221d..69c467e794f 100644 --- a/idea/testData/debugger/tinyApp/outs/twoLambdasOnOneLineSecond.out +++ b/idea/testData/debugger/tinyApp/outs/twoLambdasOnOneLineSecond.out @@ -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 Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket' twoLambdasOnOneLineSecond.kt:9 -twoLambdasOnOneLineSecond.kt:16 +twoLambdasOnOneLineSecond.kt:14 twoLambdasOnOneLineSecond.kt:9 -twoLambdasOnOneLineSecond.kt:16 +twoLambdasOnOneLineSecond.kt:0 +twoLambdasOnOneLineSecond.kt:14 +twoLambdasOnOneLineSecond.kt:9 +twoLambdasOnOneLineSecond.kt:14 twoLambdasOnOneLineSecond.kt:9 Compile bytecode for it Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket' diff --git a/idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/lambdas/twoLambdasOnOneLineSecond.kt b/idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/lambdas/twoLambdasOnOneLineSecond.kt index a33dfccf88c..60ceedc58b6 100644 --- a/idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/lambdas/twoLambdasOnOneLineSecond.kt +++ b/idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/lambdas/twoLambdasOnOneLineSecond.kt @@ -4,15 +4,13 @@ fun main(args: Array) { val a = A() // EXPRESSION: it // RESULT: 2: I - // STEP_INTO: 4 + // STEP_INTO: 7 //Breakpoint! - a.foo { counter++; a }.foo { a } + a.foo(1) { a }.foo(2) { a } } -var counter = 1 - class A { - fun foo(f: (Int) -> A): A { - return f(counter) + fun foo(i: Int, f: (Int) -> A): A { + return f(i) } -} \ No newline at end of file +}