Files
kotlin-fork/idea/testData/resolve/partialBodyResolve/As.kt
T
2016-01-22 05:54:38 +03:00

20 lines
289 B
Kotlin
Vendored

fun foo(p: Any, p1: Any?) {
x(e.f as String)
y(p as? Int)
z(f() as String)
if (a) {
print((p as String).length)
}
else {
print((p as String).get(1))
}
if (y()) {
print(<caret>p[1])
p1 as String
}
z(p1 as String)
}