Support additional flags in MPP tests. Add diagnostic tests for defaults

This commit is contained in:
Mikhail Bogdanov
2020-07-21 14:46:34 +02:00
parent 125c72cb8d
commit d083297366
7 changed files with 41 additions and 7 deletions
@@ -0,0 +1,9 @@
package base
interface Check {
fun test(): String {
return "fail";
}
}
open class CheckClass : Check
@@ -0,0 +1,9 @@
import base.*
interface SubCheck : Check {
override fun test(): String {
return "OK"
}
}
class <!EXPLICIT_OVERRIDE_REQUIRED_IN_MIXED_MODE("public open fun test(): String defined in SubCheckClass", "public open fun test(): String defined in base.CheckClass", "all-compatibility")!>SubCheckClass<!> : CheckClass(), SubCheck
@@ -0,0 +1,4 @@
MODULE base { platform=[JVM]; root=base; additionalCompilerArgs=-Xjvm-default=disable }
MODULE clash { platform=[JVM]; root=clash; additionalCompilerArgs=-Xjvm-default=all-compatibility }
clash -> base { kind=DEPENDS_ON }