Checking that smart casts will not be broken by conversion
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo(list: List<String>, o: Any): Int? {
|
||||
<caret>return list
|
||||
.map { it.length + (o as Int) }
|
||||
.filter { it > 0 }
|
||||
.map { it * o.hashCode() }
|
||||
.firstOrNull()
|
||||
}
|
||||
Reference in New Issue
Block a user