Fix autopopup completion with irrelevant variants after typing 'f' suffix for float number

#KT-4312 Fixed
This commit is contained in:
Nikolay Krasko
2013-12-17 17:36:03 +04:00
parent 31ad4f8451
commit dbc1f6b42c
10 changed files with 122 additions and 0 deletions
@@ -0,0 +1,7 @@
fun test() {
val some = 1
val f = 1.0f
som<caret>
}
// EXIST: some
@@ -0,0 +1,7 @@
fun test() {
val floor = "Floor"
val a = 1/**/f<caret>
}
// EXIST: floor
// EXIST: false
@@ -0,0 +1,5 @@
val Int.f: Float get() = this.toFloat()
val test = 1.<caret>
// EXIST: f
@@ -0,0 +1,3 @@
val a = 1.0F<caret>
// NUMBER: 0
@@ -0,0 +1,3 @@
val a = 1.0f<caret>
// NUMBER: 0
@@ -0,0 +1,5 @@
fun test() {
val a = 10<caret>
}
// NUMBER: 0
@@ -0,0 +1,3 @@
val a = 1L<caret>
// NUMBER: 0