[FIR/AA decompiler] Add tests for sealed interfaces

^KT-62895
This commit is contained in:
Marco Pennekamp
2024-01-04 16:37:42 +01:00
committed by Space Team
parent 7c8aff963f
commit 5797b4877c
19 changed files with 158 additions and 0 deletions
@@ -0,0 +1,17 @@
public final class Inheritor2 : R|test/SealedInterface| {
public constructor(): R|test/Inheritor2|
}
public final class Inheritor3 : R|test/SealedInterface| {
public constructor(): R|test/Inheritor3|
}
public sealed interface SealedInterface : R|kotlin/Any| {
public final class Inheritor1 : R|test/SealedInterface| {
public constructor(): R|test/SealedInterface.Inheritor1|
}
}
@@ -0,0 +1,9 @@
package test
class Inheritor3 : SealedInterface
sealed interface SealedInterface {
class Inheritor1 : SealedInterface
}
class Inheritor2 : SealedInterface
@@ -0,0 +1,16 @@
package test
public final class Inheritor2 : test.SealedInterface {
/*primary*/ public constructor Inheritor2()
}
public final class Inheritor3 : test.SealedInterface {
/*primary*/ public constructor Inheritor3()
}
public sealed interface SealedInterface {
public final class Inheritor1 : test.SealedInterface {
/*primary*/ public constructor Inheritor1()
}
}