Switch warning to error for java-default method calls within 1.6 target
#KT-15825 Fixed (cherry picked from commit 9b29ebb)
This commit is contained in:
committed by
Ilya Gorbunov
parent
5bfa9b248e
commit
232d1bd9ef
@@ -13,12 +13,14 @@ interface KInterface : Test {
|
||||
}
|
||||
|
||||
class KClass : Test {
|
||||
@kotlin.Suppress("DEFAULT_METHOD_CALL_FROM_JAVA6_TARGET")
|
||||
fun ktest(): String {
|
||||
return super.test() + test()
|
||||
}
|
||||
}
|
||||
|
||||
class KTClass : KInterface {
|
||||
@kotlin.Suppress("DEFAULT_METHOD_CALL_FROM_JAVA6_TARGET")
|
||||
fun ktest(): String {
|
||||
return super.test() + test()
|
||||
}
|
||||
@@ -27,6 +29,7 @@ class KTClass : KInterface {
|
||||
|
||||
fun box(): String {
|
||||
val p = object : KInterface {
|
||||
@kotlin.Suppress("DEFAULT_METHOD_CALL_FROM_JAVA6_TARGET")
|
||||
fun ktest(): String {
|
||||
return super.test() + test()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user