Debugger: Add a stepping test for inline classes (KT-26798)
This commit is contained in:
@@ -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
|
||||||
+5
@@ -242,6 +242,11 @@ public class KotlinSteppingTestGenerated extends AbstractKotlinSteppingTest {
|
|||||||
runTest("idea/testData/debugger/tinyApp/src/stepping/stepInto/functionReference.kt");
|
runTest("idea/testData/debugger/tinyApp/src/stepping/stepInto/functionReference.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("inlineClass.kt")
|
||||||
|
public void testInlineClass() throws Exception {
|
||||||
|
runTest("idea/testData/debugger/tinyApp/src/stepping/stepInto/inlineClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("inlineDex.kt")
|
@TestMetadata("inlineDex.kt")
|
||||||
public void testInlineDex() throws Exception {
|
public void testInlineDex() throws Exception {
|
||||||
runTest("idea/testData/debugger/tinyApp/src/stepping/stepInto/inlineDex.kt");
|
runTest("idea/testData/debugger/tinyApp/src/stepping/stepInto/inlineDex.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user