32c3f85679
This checker doesn't support `@PublishedAPI` yet, so some BB tests for it were muted. #KT-46270
11 lines
263 B
Kotlin
Vendored
11 lines
263 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_CALL_FROM_PUBLIC_INLINE!>Foo<!>()
|
|
}
|