Files
kotlin-fork/compiler/testData/diagnostics/tests/inline/kt15410.kt
T

9 lines
233 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_NOT_IN_SUPER_CALL!>Foo<!>()
}