Debugger: Add a stepping test for inline classes (KT-26798)

This commit is contained in:
Yan Zhulanow
2018-09-17 20:39:23 +03:00
parent 1ee1d15b91
commit fee0cfcecb
3 changed files with 34 additions and 0 deletions
@@ -0,0 +1,20 @@
package inlineClass
interface A {
fun foo()
}
@Suppress("EXPERIMENTAL_FEATURE_WARNING")
inline class B(val a: String) : A {
override fun foo() {
println("foo")
}
}
fun main(args: Array<String>) {
val b = B("")
//Breakpoint!
b.foo()
}
// STEP_INTO: 1
@@ -0,0 +1,9 @@
LineBreakpoint created at inlineClass.kt:17
Run Java
Connected to the target VM
inlineClass.kt:17
inlineClass.kt:10
Disconnected from the target VM
Process finished with exit code 0
foo