18 lines
223 B
Kotlin
Vendored
18 lines
223 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// !LANGUAGE: +ContextReceivers
|
|
|
|
context(Int, String)
|
|
fun foo(): Int {
|
|
return this@Int + 42
|
|
}
|
|
|
|
context(Int)
|
|
fun foo(): Int {
|
|
return this@Int + 42
|
|
}
|
|
|
|
fun test() {
|
|
with(42) {
|
|
foo()
|
|
}
|
|
} |