More tests for smart casts
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
import java.io.File
|
||||
|
||||
fun foo(o: Any) {
|
||||
if (o is File) {
|
||||
o.<caret>
|
||||
}
|
||||
}
|
||||
|
||||
// EXIST_JAVA_ONLY: { lookupString: "absolutePath", itemText: "absolutePath", tailText: " (from getAbsolutePath())", typeText: "String!" }
|
||||
// ABSENT: getAbsolutePath
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
import java.io.File
|
||||
|
||||
fun Any.foo() {
|
||||
if (this is File) {
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
|
||||
// EXIST_JAVA_ONLY: { lookupString: "absolutePath", itemText: "absolutePath", tailText: " (from getAbsolutePath())", typeText: "String!" }
|
||||
// ABSENT: getAbsolutePath
|
||||
Reference in New Issue
Block a user