Iterate Intention: Filter out functions without 'operator' modifier

This commit is contained in:
Alexey Sedunov
2015-12-17 21:09:46 +03:00
parent 1c74bab1cc
commit 1d3054e7a6
4 changed files with 33 additions and 2 deletions
@@ -0,0 +1,9 @@
// WITH_RUNTIME
// IS_APPLICABLE: false
class T<U> {
fun <U> T<U>.iterator(): Iterator<U> = listOf<U>().iterator()
}
fun test() {
T<Int>()<caret>
}