Files
kotlin-fork/idea/testData/quickfix/obsoleteKotlinJsPackages/kotlinDomAndBrowserImport.kt
T
Roman Golyshev 5cf6b860a6 KT-39869 Add inspection for FQN usages of kotlin.browser package
- `kotlin.dom` does not need this because it contains only extensions
- Add test for launching whole project fix; mute it because currently it
does not pass
  - The test fails because in tests `RefJavaManager` tries to create
  `RefJavaFileImpl` for .kt files. It will try to use UAST, but it
  does not work for JS files. In production this is disabled, so no
  problems occur
2020-07-06 18:04:01 +00:00

11 lines
226 B
Kotlin
Vendored

// "Fix 'kotlin.dom' and 'kotlin.browser' packages usages in the project" "true"
// JS
package test
import kotlin.<caret>browser.localStorage
import kotlin.dom.addClass
fun usage() {
kotlin.browser.document.toString()
}