[FIR] Add test for CLASS_CANNOT_BE_EXTENDED_DIRECTLY with typealias

#KT-61921
This commit is contained in:
Kirill Rakhman
2023-09-14 10:55:12 +02:00
committed by Space Team
parent 2d4646a285
commit 7a65c36bfc
2 changed files with 4 additions and 36 deletions
@@ -1,6 +1,10 @@
// FIR_IDENTICAL
class Test1 : <!CLASS_CANNOT_BE_EXTENDED_DIRECTLY!>Enum<Test1><!>("", 0)
typealias TA<T> = Enum<T>
class TestTa : <!CLASS_CANNOT_BE_EXTENDED_DIRECTLY!>TA<TestTa><!>("", 0)
class Outer {
class Test2 : <!CLASS_CANNOT_BE_EXTENDED_DIRECTLY!>Enum<Test2><!>("", 0)
}