Add test for obsolete issue
#KT-12688 Obsolete
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
|||||||
|
// FILE: foo/A.java
|
||||||
|
package foo;
|
||||||
|
|
||||||
|
public class A {
|
||||||
|
static void f(B b) {
|
||||||
|
b.g();
|
||||||
|
}
|
||||||
|
|
||||||
|
public interface B {
|
||||||
|
void g();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// FILE: bar/sample.kt
|
||||||
|
|
||||||
|
package bar
|
||||||
|
|
||||||
|
fun main() {
|
||||||
|
foo.A.<!INVISIBLE_MEMBER!>f<!> {}
|
||||||
|
}
|
||||||
+5
@@ -0,0 +1,5 @@
|
|||||||
|
package
|
||||||
|
|
||||||
|
package bar {
|
||||||
|
public fun main(): kotlin.Unit
|
||||||
|
}
|
||||||
@@ -12573,6 +12573,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
|
|||||||
doTest(fileName);
|
doTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("privateCandidatesWithWrongArguments.kt")
|
||||||
|
public void testPrivateCandidatesWithWrongArguments() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/j+k/sam/privateCandidatesWithWrongArguments.kt");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("samOnTypeParameter.kt")
|
@TestMetadata("samOnTypeParameter.kt")
|
||||||
public void testSamOnTypeParameter() throws Exception {
|
public void testSamOnTypeParameter() throws Exception {
|
||||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/j+k/sam/samOnTypeParameter.kt");
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/j+k/sam/samOnTypeParameter.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user