Files
kotlin-fork/compiler/testData/ir/irText/declarations/contextReceivers/overloading.kt
T
2022-04-06 16:05:40 +00:00

18 lines
207 B
Kotlin
Vendored

// !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()
}
}