[FIR] Add CAST_NEVER_SUCCEEDS
This commit is contained in:
committed by
TeamCityServer
parent
4ca757446a
commit
2b5524b18f
+1
-1
@@ -9,7 +9,7 @@ fun test_1(b: B<String, Number>) {
|
||||
}
|
||||
|
||||
fun test_2(s: String) {
|
||||
val func = { s.length } as B<Int, Int>
|
||||
val func = { s.length } <!CAST_NEVER_SUCCEEDS!>as<!> B<Int, Int>
|
||||
}
|
||||
|
||||
class B<out K, V>(val k: K, val v: V)
|
||||
|
||||
Reference in New Issue
Block a user