mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
15 lines
280 B
Kotlin
15 lines
280 B
Kotlin
class A {
|
|
<!CONFLICTING_OVERLOADS!>fun component1()<!> = 1
|
|
<!CONFLICTING_OVERLOADS!>fun component1()<!> = 1
|
|
fun component2() = 1
|
|
}
|
|
|
|
class C {
|
|
fun iterator(): Iterator<A> = null!!
|
|
}
|
|
|
|
fun test() {
|
|
for ((x, y) in <!COMPONENT_FUNCTION_AMBIGUITY!>C()<!>) {
|
|
|
|
}
|
|
} |