[FE] Add test for compiling against library with kotlin sealed classes and interfaces
#KT-20423 #KT-13495
This commit is contained in:
committed by
TeamCityServer
parent
7897bb6adb
commit
c0a1aecf9b
+23
@@ -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
|
||||
Reference in New Issue
Block a user