Refine predicate for 'iter' postfix template
Use IterableTypesDetection to determine if the given expression may be iterated #KT-14134 Fixed #KT-14129 Fixed
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
fun foo(map: Map<String, Int>) {
|
||||
map.for<caret>
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
fun foo(map: Map<String, Int>) {
|
||||
for (entry in map) {
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fun foo(list: List<String>) {
|
||||
list[0].for<caret>
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
fun foo(list: List<String>) {
|
||||
for (c in list[0]) {
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user