KT-4976 Completion ignores smart casts

#KT-4976 Fixed
 #KT-5718 Fixed
This commit is contained in:
Valentin Kipyatkov
2014-09-01 22:05:02 +04:00
parent c79204a41d
commit 855cc2443f
11 changed files with 109 additions and 32 deletions
@@ -0,0 +1,14 @@
// "Import" "true"
// ERROR: Unresolved reference: foo
package c
import g.foo
class B
fun test(a: Any) {
if (a is B) {
a.<caret>foo()
}
}
@@ -0,0 +1,12 @@
// "Import" "true"
// ERROR: Unresolved reference: foo
package c
class B
fun test(a: Any) {
if (a is B) {
a.<caret>foo()
}
}
@@ -0,0 +1,5 @@
package g
import c.B
fun B.foo() {}