Files
kotlin-fork/compiler/testData/diagnostics/tests/extensions/contextReceivers/fromKEEP/loggingContext.fir.kt
T
2021-12-02 20:24:14 +03:00

12 lines
308 B
Kotlin
Vendored

interface Params
interface Logger {
fun info(message: String)
}
interface LoggingContext {
val log: Logger // this context provides reference to logger
}
context(LoggingContext)
fun performSomeBusinessOperation(withParams: Params) {
<!UNRESOLVED_REFERENCE!>log<!>.info("Operation has started")
}