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,4 @@
package other
public val String.extensionPropNotImported: Int
get() = 1
@@ -0,0 +1,11 @@
val String.extensionProp1: Int get() = 1
val String.extensionProp2: Int get() = 1
fun foo(o: Any) {
if (o !is String) return
o.ext<caret>
}
// EXIST: extensionProp1
// EXIST: extensionProp2
// EXIST: extensionPropNotImported