10 lines
256 B
Kotlin
Vendored
10 lines
256 B
Kotlin
Vendored
// !WITH_NEW_INFERENCE
|
|
// !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<!>()
|
|
} |