Fix tests after adding lineNumber for functions without return expression

This commit is contained in:
Natalia Ukhorskaya
2014-11-07 16:45:04 +03:00
parent 323df9498a
commit 42257218b6
10 changed files with 13 additions and 10 deletions
@@ -3,4 +3,4 @@ fun foo() {
42
}
// 3
// 3 4
@@ -8,4 +8,4 @@ fun foo() {
}
}
// 2 3 6 7 6
// 2 3 6 7 6 9
@@ -12,4 +12,4 @@ fun foo() {
}
}
// 2 3 5 8 9 11 8
// 2 3 5 8 9 11 8 13
@@ -12,4 +12,4 @@ fun foo() {
}
}
// 2 3 5 8 9 11 8
// 2 3 5 8 9 11 8 13
@@ -16,4 +16,4 @@ fun foo() {
}
}
// 2 3 7 5 7 10 11 15 13 15 10
// 2 3 7 5 7 10 11 15 13 15 10 17
@@ -12,4 +12,4 @@ fun foo() {
}
}
// 2 3 5 8 9 11 8
// 2 3 5 8 9 11 8 13
+1 -1
View File
@@ -12,4 +12,4 @@ fun foo(x: Int) {
}
}
// 3 4 5 9 10 11 8
// 3 4 5 9 10 11 8 13
@@ -12,4 +12,4 @@ fun foo(x: Int) {
}
}
// 2 3 4 5 8 9 10 11 8
// 2 3 4 5 8 9 10 11 8 13
@@ -3,7 +3,7 @@ LineBreakpoint created at withoutBodyFunctions.kt:15
LineBreakpoint created at withoutBodyFunctions.kt:21
LineBreakpoint created at withoutBodyFunctions.kt:27
LineBreakpoint created at withoutBodyFunctions.kt:32
LineBreakpoint created at withoutBodyFunctions.kt:36
LineBreakpoint created at withoutBodyFunctions.kt:37
!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! withoutBodyFunctions.WithoutBodyFunctionsPackage
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
withoutBodyFunctions.kt:9
@@ -16,6 +16,8 @@ withoutBodyFunctions.kt:27
Compile bytecode for i
withoutBodyFunctions.kt:32
Compile bytecode for i
withoutBodyFunctions.kt:37
Compile bytecode for i
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
Process finished with exit code 0
@@ -31,7 +31,8 @@ fun foo(i: Int) = i
//Breakpoint!
fun fooOneLine(i: Int): Int { return 1 }
// Cannot stop at this breakpoint - empty body
// EXPRESSION: i
// RESULT: 2: I
//Breakpoint!
fun fooEmpty(i: Int) {}