[FE] Add test for compiling against library with kotlin sealed classes and interfaces

#KT-20423
#KT-13495
This commit is contained in:
Dmitriy Novozhilov
2020-11-20 13:36:49 +03:00
committed by TeamCityServer
parent 7897bb6adb
commit c0a1aecf9b
8 changed files with 87 additions and 0 deletions
@@ -0,0 +1,23 @@
warning: ATTENTION!
This build uses unsafe internal compiler arguments:
-XXLanguage:+FreedomForSealedClasses
-XXLanguage:+SealedInterfaces
This mode is not recommended for production use,
as no stability/compatibility guarantees are given on
compiler or generated code. Use it at your own risk!
compiler/testData/compileKotlinAgainstCustomBinaries/sealedClassesAndInterfaces/main.kt:4:9: warning: variable 'x' is never used
val x = when (base) {
^
compiler/testData/compileKotlinAgainstCustomBinaries/sealedClassesAndInterfaces/main.kt:13:9: warning: variable 'x' is never used
val x = when (base) {
^
compiler/testData/compileKotlinAgainstCustomBinaries/sealedClassesAndInterfaces/main.kt:24:9: warning: variable 'x' is never used
val x = when (base) {
^
compiler/testData/compileKotlinAgainstCustomBinaries/sealedClassesAndInterfaces/main.kt:31:9: warning: variable 'x' is never used
val x = when (base) {
^
OK