[FE] Prohibit inheritance of sealed classes in different module
KT-20423
This commit is contained in:
committed by
TeamCityServer
parent
f8d6f79c17
commit
57a081c399
+6
@@ -700,6 +700,12 @@ class CompileKotlinAgainstCustomBinariesTest : AbstractKotlinCompilerIntegration
|
||||
compileKotlin("main.kt", tmpdir, listOf(library), additionalOptions = features)
|
||||
}
|
||||
|
||||
fun testSealedInheritorInDifferentModule() {
|
||||
val features = listOf("-XXLanguage:+FreedomForSealedClasses", "-XXLanguage:+SealedInterfaces")
|
||||
val library = compileLibrary("library", additionalOptions = features, checkKotlinOutput = {})
|
||||
compileKotlin("main.kt", tmpdir, listOf(library), additionalOptions = features)
|
||||
}
|
||||
|
||||
// If this test fails, then bootstrap compiler most likely should be advanced
|
||||
fun testPreReleaseFlagIsConsistentBetweenBootstrapAndCurrentCompiler() {
|
||||
val bootstrapCompiler = JarFile(PathUtil.kotlinPathsForCompiler.compilerPath)
|
||||
|
||||
Reference in New Issue
Block a user