Debugger: add test for line breakpoint variants with inline function call. Fix testData for muted test
This commit is contained in:
+1
-1
@@ -15,6 +15,6 @@ class A(val prop: Int) {
|
||||
// EXPRESSION: it
|
||||
// RESULT: Unresolved reference: it
|
||||
//Breakpoint! (lambdaOrdinal = -1)
|
||||
list.forEach { println(it) }
|
||||
list.map { it * 2 }
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
package inlineFunctionBreakpointVariants
|
||||
|
||||
import inlineFunctionOtherPackage.*
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint is outside of function literal, but we stop at it twice: before and after foo1 invocation
|
||||
//Breakpoint! (lambdaOrdinal = -1)
|
||||
foo1 { foo2() }
|
||||
}
|
||||
|
||||
inline fun foo1(f: () -> Unit) {
|
||||
f()
|
||||
}
|
||||
|
||||
inline fun foo2() = 1
|
||||
|
||||
// RESUME: 1
|
||||
Reference in New Issue
Block a user