KTIJ-664 [SealedClassInheritorsProvider]: test fixes
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+SealedInterfaces -XXLanguage:+FreedomForSealedClasses
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+SealedInterfaces -XXLanguage:+AllowSealedInheritorsInDifferentFilesOfSamePackage
|
||||
|
||||
package sealed
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+SealedInterfaces -XXLanguage:+FreedomForSealedClasses
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+SealedInterfaces -XXLanguage:+AllowSealedInheritorsInDifferentFilesOfSamePackage
|
||||
package sealed
|
||||
|
||||
class C: SealedDeclarationInterface {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+SealedInterfaces -XXLanguage:+FreedomForSealedClasses
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+SealedInterfaces -XXLanguage:+AllowSealedInheritorsInDifferentFilesOfSamePackage
|
||||
package sealed.otherpackage
|
||||
import sealed.SealedDeclarationInterface
|
||||
import sealed.SealedDeclarationClass
|
||||
|
||||
@@ -11,7 +11,7 @@ sealed class Variant {
|
||||
}
|
||||
fun test(v: Variant?) = when(v) {
|
||||
Variant.Singleton -> "s"
|
||||
is Variant.Something -> TODO()
|
||||
Variant.Another -> TODO()
|
||||
is Variant.Something -> TODO()
|
||||
null -> TODO()
|
||||
}
|
||||
|
||||
@@ -15,8 +15,8 @@ fun test(foo: FooSealed?) = <caret>when (foo) {
|
||||
B -> TODO()
|
||||
C -> TODO()
|
||||
is D -> TODO()
|
||||
is `true` -> TODO()
|
||||
is `false` -> TODO()
|
||||
`null` -> TODO()
|
||||
is `true` -> TODO()
|
||||
null -> TODO()
|
||||
}
|
||||
@@ -12,8 +12,8 @@ sealed class Variant {
|
||||
fun test(v: Variant?) {
|
||||
when(v) {
|
||||
Variant.Singleton -> "s"
|
||||
is Variant.Something -> TODO()
|
||||
Variant.Another -> TODO()
|
||||
is Variant.Something -> TODO()
|
||||
null -> TODO()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user