19 lines
257 B
Kotlin
Vendored
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!")
|
|
} |