mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[debugger] Add test for simple inline call from common multiplatform module
GitOrigin-RevId: c5ca949da8b27548fd648852928d562c701b4025
This commit is contained in:
committed by
intellij-monorepo-bot
parent
6dff58efc6
commit
fb0c01850e
+5
@@ -71,6 +71,11 @@ public class K2IdeK2MultiplatformCodeKotlinEvaluateExpressionTestGenerated exten
|
||||
runTest("../testData/evaluation/multiplatform/inlineFunWithDefaultArgument.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineInCommonModule.kt")
|
||||
public void testInlineInCommonModule() throws Exception {
|
||||
runTest("../testData/evaluation/multiplatform/inlineInCommonModule.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("interface.kt")
|
||||
public void testInterface() throws Exception {
|
||||
runTest("../testData/evaluation/multiplatform/interface.kt");
|
||||
|
||||
+5
@@ -2676,6 +2676,11 @@ public abstract class IrKotlinEvaluateExpressionInMppTestGenerated extends Abstr
|
||||
runTest("testData/evaluation/multiplatform/inlineFunWithDefaultArgument.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineInCommonModule.kt")
|
||||
public void testInlineInCommonModule() throws Exception {
|
||||
runTest("testData/evaluation/multiplatform/inlineInCommonModule.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("interface.kt")
|
||||
public void testInterface() throws Exception {
|
||||
runTest("testData/evaluation/multiplatform/interface.kt");
|
||||
|
||||
+5
@@ -2676,6 +2676,11 @@ public abstract class K1IdeK2CodeKotlinEvaluateExpressionInMppTestGenerated exte
|
||||
runTest("testData/evaluation/multiplatform/inlineFunWithDefaultArgument.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineInCommonModule.kt")
|
||||
public void testInlineInCommonModule() throws Exception {
|
||||
runTest("testData/evaluation/multiplatform/inlineInCommonModule.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("interface.kt")
|
||||
public void testInterface() throws Exception {
|
||||
runTest("testData/evaluation/multiplatform/interface.kt");
|
||||
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
// MODULE: common
|
||||
// FILE: common.kt
|
||||
|
||||
inline fun foo(): Int = 42
|
||||
|
||||
fun boo() {
|
||||
"".toString()
|
||||
}
|
||||
|
||||
// MODULE: jvm(common)
|
||||
// FILE: jvm.kt
|
||||
|
||||
fun main() {
|
||||
//Breakpoint!
|
||||
boo()
|
||||
}
|
||||
|
||||
// STEP_INTO: 1
|
||||
// EXPRESSION: foo()
|
||||
// RESULT: 42: I
|
||||
|
||||
// IGNORE_K2
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
LineBreakpoint created at jvm.kt:6
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
jvm.kt:6
|
||||
Compile bytecode for foo()
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
Reference in New Issue
Block a user