Added test for "Specify type explicitly" for loop parameters.
#KT-1890 fixed
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// "Specify Type Explicitly" "true"
|
||||
import java.util.HashMap
|
||||
import java.util.Map
|
||||
|
||||
fun foo(map : HashMap<String, Int>) {
|
||||
for (<caret>entry : Map.Entry<String, Int> in map.entrySet()) {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Specify Type Explicitly" "true"
|
||||
import java.util.HashMap
|
||||
|
||||
fun foo(map : HashMap<String, Int>) {
|
||||
for (<caret>entry in map.entrySet()) {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user