Added deprecated diagnostic for invoking default methods within jvm-target 1.6
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
abstract class A : MutableList<String> {
|
||||
override fun sort(/*0*/ p0: java.util.Comparator<in String>) {
|
||||
super.sort(p0)
|
||||
super.<!DEFAULT_METHOD_CALL_FROM_JAVA6_TARGET!>sort<!>(p0)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import java.util.stream.*
|
||||
|
||||
interface A : Collection<String> {
|
||||
override fun stream(): Stream<String> = Stream.of()
|
||||
override fun stream(): Stream<String> = Stream.<!INTERFACE_STATIC_METHOD_CALL_FROM_JAVA6_TARGET!>of<!>()
|
||||
}
|
||||
|
||||
fun foo(x: List<String>, y: A) {
|
||||
|
||||
Reference in New Issue
Block a user