Disable check about unimplemented check for real defaults

Now we can generate proper defaults and there is no need in additional
 checks about unimplemented methods

 #KT-41130 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2021-03-12 10:50:32 +03:00
committed by TeamCityServer
parent 641f08d561
commit 78a0d7b5bb
13 changed files with 80 additions and 0 deletions
@@ -0,0 +1,3 @@
package test;
class ExtendInterfaceWithDefaultMethodAndCompatibilityAll implements KotlinInterface {}
@@ -0,0 +1,5 @@
package test
interface KotlinInterface {
fun bar() {}
}
@@ -0,0 +1 @@
// COMPILER_ARGUMENTS: -Xjvm-default=all
@@ -0,0 +1,3 @@
package test;
class ExtendInterfaceWithDefaultMethodAndCompatibilityAll implements KotlinInterface {}
@@ -0,0 +1,5 @@
package test
interface KotlinInterface {
fun bar() {}
}
@@ -0,0 +1 @@
// COMPILER_ARGUMENTS: -Xjvm-default=all-compatibility
@@ -0,0 +1,3 @@
package test;
<error descr="Class 'ExtendInterfaceWithDefaultMethodAndCompatibilityAll' must either be declared abstract or implement abstract method 'bar()' in 'KotlinInterface'">class ExtendInterfaceWithDefaultMethodAndCompatibilityAll implements KotlinInterface</error> {}
@@ -0,0 +1,5 @@
package test
interface KotlinInterface {
fun bar() {}
}
@@ -0,0 +1 @@
// COMPILER_ARGUMENTS: -Xjvm-default=disable