K1/K2: add tests for KT-58767

This commit is contained in:
Anastasia.Nekrasova
2023-12-21 11:28:10 +02:00
committed by Space Team
parent 6268cfedab
commit 19fe605a3e
7 changed files with 48 additions and 0 deletions
@@ -0,0 +1,9 @@
@RequiresOptIn
annotation class ApiMarker
@SubclassOptInRequired(ApiMarker::class)
interface Interface
typealias TypeAlias = Interface
class InterfaceInheritorB: <!OPT_IN_USAGE_ERROR!>TypeAlias<!>
@@ -0,0 +1,9 @@
@RequiresOptIn
annotation class ApiMarker
@SubclassOptInRequired(ApiMarker::class)
interface Interface
typealias TypeAlias = Interface
class InterfaceInheritorB: TypeAlias