[Tests] Test samples from KEEP
This commit is contained in:
committed by
TeamCityServer
parent
b0a7be72e8
commit
d8faa9686d
+12
@@ -0,0 +1,12 @@
|
||||
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) {
|
||||
log.info("Operation has started")
|
||||
}
|
||||
Reference in New Issue
Block a user