Added deprecated diagnostic for invoking default methods within jvm-target 1.6
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// FILE: JavaClass.java
|
||||
|
||||
public class JavaClass {
|
||||
public static String testStatic() {
|
||||
return "OK";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// FILE: 1.kt
|
||||
import JavaClass.testStatic
|
||||
|
||||
fun test() {
|
||||
JavaClass.testStatic()
|
||||
testStatic()
|
||||
}
|
||||
Reference in New Issue
Block a user