Files
kotlin-fork/compiler/testData/diagnostics/tests/inline/kt21177.fir.kt
T
2020-10-27 14:51:08 +01:00

19 lines
315 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_PARAMETER
class SomeContainer {
protected class Limit
protected fun makeLimit(): Limit = TODO()
public inline fun foo(f: () -> Unit) {
Limit()
makeLimit()
}
}
open class A protected constructor() {
inline fun foo(f: () -> Unit) {
A()
}
}