Test for local fun
This commit is contained in:
@@ -0,0 +1,14 @@
|
|||||||
|
public fun test() {
|
||||||
|
|
||||||
|
class Z {
|
||||||
|
public fun localFun() {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[inline] fun localFun2() {
|
||||||
|
Z().localFun()
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
public fun test() {
|
||||||
|
|
||||||
|
fun localFun() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
[inline] fun localFun2() {
|
||||||
|
localFun()
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -3936,6 +3936,16 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
|
|||||||
doTest("compiler/testData/diagnostics/tests/inline/nonPublicMember/localClass.kt");
|
doTest("compiler/testData/diagnostics/tests/inline/nonPublicMember/localClass.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("localClass2.kt")
|
||||||
|
public void testLocalClass2() throws Exception {
|
||||||
|
doTest("compiler/testData/diagnostics/tests/inline/nonPublicMember/localClass2.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("localFun.kt")
|
||||||
|
public void testLocalFun() throws Exception {
|
||||||
|
doTest("compiler/testData/diagnostics/tests/inline/nonPublicMember/localFun.kt");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("compiler/testData/diagnostics/tests/inline/unaryExpressions")
|
@TestMetadata("compiler/testData/diagnostics/tests/inline/unaryExpressions")
|
||||||
|
|||||||
Reference in New Issue
Block a user