Consider the following:
package test17
class Test17 {
void foo() {
new List()|
}
}
Now, suppose the cursor is at "|" and start to type "." (dot): the code assist suggestion list is shown. Start to type "wi" and look at the suggestion list: eachWithIndex(Closure) is shown before with(Closure). This is unexpected and it's the cause of a lot of typing errors while coding.
In particular, see the difference when starting code assist in these different ways:
new List().| (and then type "wi")
vs
new List().wi|
In the second case eachWithIndex(Closure) is not even shown!
Consider the following:
Now, suppose the cursor is at "|" and start to type "." (dot): the code assist suggestion list is shown. Start to type "wi" and look at the suggestion list:
eachWithIndex(Closure)is shown beforewith(Closure). This is unexpected and it's the cause of a lot of typing errors while coding.In particular, see the difference when starting code assist in these different ways:
new List().|(and then type "wi")vs
new List().wi|In the second case
eachWithIndex(Closure)is not even shown!