Files
2022-01-21 17:22:00 +03:00

19 lines
257 B
Kotlin
Vendored

package test
context(Int) val p get() = 42
context(Int)
class A {
context(Int) val p get() = 42
context(Int) fun m() {}
}
context(String)
fun f() {
println(this@String)
}
fun ordinary() {
println("I do not require context receivers!")
}