Files
kotlin-fork/compiler/testData/diagnostics/tests/extensions/contextReceivers/nonConflicting.kt
T
Kirill Rakhman 951b299268 [FIR] Rewrite redeclaration checks
#KT-60124 Fixed
#KT-60573 Fixed
2023-07-27 08:06:20 +00:00

21 lines
263 B
Kotlin
Vendored

// FIR_IDENTICAL
// !LANGUAGE: +ContextReceivers
interface A
interface B
interface C
interface D
context(A, B)
fun f(): Unit = TODO()
context(C, D)
fun f(): Unit = TODO()
fun test(a: A, b: B) {
with(a) {
with(b) {
f()
}
}
}