Extract Function: Support multiple output values

This commit is contained in:
Alexey Sedunov
2014-09-04 17:28:25 +04:00
parent 7a15a88288
commit 76433571f8
68 changed files with 1293 additions and 319 deletions
@@ -2,6 +2,11 @@ LineBreakpoint created at errors.kt:13
!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! errors.ErrorsPackage
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
errors.kt:12
Compile bytecode for prop += 1
prop2 +=2
prop + prop2
// RESULT: instance of kotlin.Triple(id=ID): Lkotlin/Triple;
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
Process finished with exit code 0
@@ -4,6 +4,9 @@ Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socke
vars.kt:6
Compile bytecode for a
Compile bytecode for a += 1
a
// RESULT: 3: I
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
Process finished with exit code 0
@@ -2,4 +2,4 @@ prop += 1
prop2 +=2
prop + prop2
// RESULT: Cannot perform an action because this code fragment changes more than one variable: var prop2: Int, var prop: Int
// RESULT: instance of kotlin.Triple(id=ID): Lkotlin/Triple;
@@ -10,8 +10,5 @@ fun main(args: Array<String>) {
// EXPRESSION: a
// RESULT: 2: I
// EXPRESSION: a += 1
// RESULT: 3: I
// EXPRESSION: a
// RESULT: 2: I
@@ -0,0 +1,4 @@
a += 1
a
// RESULT: 3: I