[FIR] Implement PROTECTED_CONSTRUCTOR_NOT_IN_SUPER_CALL

^KT-59382 Fixed
This commit is contained in:
Nikolay Lunyak
2023-07-07 17:00:51 +03:00
committed by Space Team
parent 00fb927624
commit 4bba93f633
16 changed files with 79 additions and 82 deletions
+1 -1
View File
@@ -5,5 +5,5 @@ open class Foo protected constructor()
inline fun foo(f: () -> Unit) = object: Foo() {}
class A : Foo() {
inline fun foo(f: () -> Unit) = <!PROTECTED_CONSTRUCTOR_CALL_FROM_PUBLIC_INLINE!>Foo<!>()
inline fun foo(f: () -> Unit) = <!PROTECTED_CONSTRUCTOR_CALL_FROM_PUBLIC_INLINE, PROTECTED_CONSTRUCTOR_NOT_IN_SUPER_CALL!>Foo<!>()
}