Hello, everybody! Could you, please, run "Implici...
# javascript
b
Hello, everybody! Could you, please, run "Implicit (unsafe) cast from dynamic type" inspection on your Kotlin JS projects and share some info to us. To run the imspection: 1. On the main menu, choose
Analyze > Run inspection by Name
. 2. In the pop-up frame that opens, start typing the inspection name "Implicit (unsafe) cast from dynamic type". 3. Use
Whole Project
the inspection scope. 4. Click OK Note: to do it You should have Kotlin plugin 1.0.5 or 1.1-m3 or newer. And now we would like to know in which cases the inspection is tirggered. For example, for me it is: * when make (unsafe) cast w/o runtime overhed * on result of
kotlin.js
function, e.g.
fun foo(): Any = js("Object.create()")
* when get data from dynamic call, e.g.
props.asDynamic()["data-toggle"]
If You have any other case please share to us here or directly to me. Thanks!