Added deprecated diagnostic for invoking default methods within jvm-target 1.6

This commit is contained in:
Mikhael Bogdanov
2017-01-17 14:10:04 +01:00
parent 7a27a9d51f
commit 591de36666
17 changed files with 446 additions and 14 deletions
@@ -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) {