Introduce "redundant asDynamic" inspection #KT-25177 Fixed

This commit is contained in:
Toshiaki Kameyama
2018-07-04 19:47:57 +09:00
committed by Anton Bannykh
parent 2c4e21ca36
commit 605736b6ba
12 changed files with 132 additions and 0 deletions
@@ -0,0 +1 @@
org.jetbrains.kotlin.idea.inspections.RedundantAsDynamicInspection
@@ -0,0 +1,4 @@
// JS
fun test(d: dynamic) {
d.<caret>asDynamic().foo()
}
@@ -0,0 +1,4 @@
// JS
fun test(d: dynamic) {
d.foo()
}