KT-5455 Need warning about redundant type cast
#KT-5455 Fixed
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
open class A {
|
||||
fun foo() {}
|
||||
}
|
||||
class B : A()
|
||||
|
||||
fun test(b: B?) {
|
||||
(b as A).foo()
|
||||
}
|
||||
Reference in New Issue
Block a user