Introduce intention 'expr.unsafeCast<Type>()' <- -> 'expr as Type'
So #KT-16382 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
085c7d30ed
commit
e35ec8ee08
+3
@@ -0,0 +1,3 @@
|
||||
fun test(foo: dynamic) {
|
||||
val s = <spot>foo as String</spot>
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun test(foo: dynamic) {
|
||||
val s = <spot>foo.unsafeCast<String>()</spot>
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention converts unsafeCast() call to unsafe cast.
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user