Iterate Intention: Fix detection of extension iterators

#KT-8616 Fixed
This commit is contained in:
Alexey Sedunov
2015-12-17 20:55:55 +03:00
parent ee9389d089
commit 1c74bab1cc
14 changed files with 99 additions and 16 deletions
@@ -0,0 +1,10 @@
// WITH_RUNTIME
class T<U, V>
operator fun <X> T<X, String>.iterator(): Iterator<X> = listOf<X>().iterator()
fun test() {
for (i in T<Int, String>()) {
<caret>
}
}