Add test for navigation from stacktrace at inline function with object
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
|||||||
|
package inlineFunctionObjectLiteral
|
||||||
|
|
||||||
|
inline fun foo(f: () -> Unit) {
|
||||||
|
null!!
|
||||||
|
}
|
||||||
Vendored
+21
@@ -0,0 +1,21 @@
|
|||||||
|
package inlineFunctionObjectLiteral
|
||||||
|
|
||||||
|
fun box() {
|
||||||
|
t {
|
||||||
|
val a = object {
|
||||||
|
fun test() {
|
||||||
|
foo {
|
||||||
|
val b = 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
a.test()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
inline fun t(f: () -> Unit) {
|
||||||
|
f()
|
||||||
|
}
|
||||||
|
|
||||||
|
// FILE: inlineFunctionFile.kt
|
||||||
|
// LINE: 4
|
||||||
@@ -71,6 +71,12 @@ public class KotlinExceptionFilterTestGenerated extends AbstractKotlinExceptionF
|
|||||||
doTest(fileName);
|
doTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("inlineFunctionObjectLiteral")
|
||||||
|
public void testInlineFunctionObjectLiteral() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/debugger/exceptionFilter/inlineFunctionObjectLiteral/");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("inlineFunctionSameFile")
|
@TestMetadata("inlineFunctionSameFile")
|
||||||
public void testInlineFunctionSameFile() throws Exception {
|
public void testInlineFunctionSameFile() throws Exception {
|
||||||
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/debugger/exceptionFilter/inlineFunctionSameFile/");
|
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/debugger/exceptionFilter/inlineFunctionSameFile/");
|
||||||
|
|||||||
Reference in New Issue
Block a user