Files
kotlin-fork/compiler/testData/diagnostics/tests/inline/kt15410.kt
T
2021-09-30 20:08:37 +03:00

10 lines
287 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_PARAMETER
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_ERROR, PROTECTED_CONSTRUCTOR_NOT_IN_SUPER_CALL!>Foo<!>()
}