[AA] Add sealed inheritors tests for type aliased classes/interfaces
- The test data is partially incorrect, as type alias support needs to be added to `KotlinStandaloneDirectInheritorsProvider`. ^KT-66013
This commit is contained in:
committed by
Space Team
parent
5c8c3020c6
commit
54f2655b4d
+15
@@ -0,0 +1,15 @@
|
||||
// MODULE: dependency
|
||||
// FILE: MySealedClass.kt
|
||||
sealed class MySealedClass
|
||||
|
||||
typealias T1 = MySealedClass
|
||||
typealias T2 = T1
|
||||
|
||||
class OneSealedChild : MySealedClass()
|
||||
class TwoSealedChild : T1()
|
||||
class ThreeSealedChild : T2()
|
||||
|
||||
// MODULE: main(dependency)
|
||||
// FILE: main.kt
|
||||
|
||||
// class: MySealedClass
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
/OneSealedChild
|
||||
class OneSealedChild : MySealedClass()
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
// MODULE: lib
|
||||
// MODULE_KIND: LibraryBinary
|
||||
// FILE: MySealedClass.kt
|
||||
sealed class MySealedClass
|
||||
|
||||
typealias T1 = MySealedClass
|
||||
typealias T2 = T1
|
||||
|
||||
class OneSealedChild : MySealedClass()
|
||||
class TwoSealedChild : T1()
|
||||
class ThreeSealedChild : T2()
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: main.kt
|
||||
|
||||
// class: MySealedClass
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
/OneSealedChild
|
||||
class OneSealedChild : MySealedClass()
|
||||
|
||||
/ThreeSealedChild
|
||||
class ThreeSealedChild : MySealedClass()
|
||||
|
||||
/TwoSealedChild
|
||||
class TwoSealedChild : MySealedClass()
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
sealed class MySealedClass
|
||||
|
||||
typealias T1 = MySealedClass
|
||||
typealias T2 = T1
|
||||
|
||||
class OneSealedChild : MySealedClass()
|
||||
class TwoSealedChild : T1()
|
||||
class ThreeSealedChild : T2()
|
||||
|
||||
// class: MySealedClass
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
/OneSealedChild
|
||||
class OneSealedChild : MySealedClass()
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// MODULE: dependency
|
||||
// FILE: MySealedInterface.kt
|
||||
sealed interface MySealedInterface
|
||||
|
||||
typealias T1 = MySealedInterface
|
||||
typealias T2 = T1
|
||||
|
||||
class OneSealedChild : MySealedInterface
|
||||
class TwoSealedChild : T1
|
||||
class ThreeSealedChild : T2
|
||||
|
||||
// MODULE: main(dependency)
|
||||
// FILE: main.kt
|
||||
|
||||
// class: MySealedInterface
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
/OneSealedChild
|
||||
class OneSealedChild : MySealedInterface
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
// MODULE: lib
|
||||
// MODULE_KIND: LibraryBinary
|
||||
// FILE: MySealedInterface.kt
|
||||
sealed interface MySealedInterface
|
||||
|
||||
typealias T1 = MySealedInterface
|
||||
typealias T2 = T1
|
||||
|
||||
class OneSealedChild : MySealedInterface
|
||||
class TwoSealedChild : T1
|
||||
class ThreeSealedChild : T2
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: main.kt
|
||||
|
||||
// class: MySealedInterface
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
/OneSealedChild
|
||||
class OneSealedChild : MySealedInterface
|
||||
|
||||
/ThreeSealedChild
|
||||
class ThreeSealedChild : MySealedInterface
|
||||
|
||||
/TwoSealedChild
|
||||
class TwoSealedChild : MySealedInterface
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
sealed interface MySealedInterface
|
||||
|
||||
typealias T1 = MySealedInterface
|
||||
typealias T2 = T1
|
||||
|
||||
class OneSealedChild : MySealedInterface
|
||||
class TwoSealedChild : T1
|
||||
class ThreeSealedChild : T2
|
||||
|
||||
// class: MySealedInterface
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
/OneSealedChild
|
||||
class OneSealedChild : MySealedInterface
|
||||
Reference in New Issue
Block a user