From 6268cfedaba6f6fe738256a707c24aee1ee05c62 Mon Sep 17 00:00:00 2001 From: "Anastasia.Nekrasova" Date: Thu, 21 Dec 2023 11:32:44 +0200 Subject: [PATCH] K1/K2: add tests for KT-58766 --- .../subclassOptInRequired/IncorrectApplicability.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/compiler/testData/diagnostics/testsWithStdLib/annotations/subclassOptInRequired/IncorrectApplicability.kt b/compiler/testData/diagnostics/testsWithStdLib/annotations/subclassOptInRequired/IncorrectApplicability.kt index 37cd477d4f1..e55f3eae4ce 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/annotations/subclassOptInRequired/IncorrectApplicability.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/annotations/subclassOptInRequired/IncorrectApplicability.kt @@ -95,5 +95,10 @@ class OuterKlass { @SubclassOptInRequired(ApiMarker::class) sealed interface NestedSealedInterface - } + +interface Interface + +@SubclassOptInRequired(ApiMarker::class) +typealias TypeAlias = Interface +