Unused symbol: don't suggest actual declaration used in another platform

Related to KT-17512
Related to KT-15666
This commit is contained in:
Mikhail Glukhikh
2018-06-26 15:34:12 +03:00
parent 30327aa9cc
commit eb92b7ed7f
8 changed files with 47 additions and 1 deletions
@@ -0,0 +1,3 @@
expect class My constructor() {
fun foo()
}
@@ -0,0 +1,3 @@
expect class My constructor() {
fun foo()
}
@@ -0,0 +1,7 @@
actual class My {
actual fun foo() {}
}
fun test() {
My().foo()
}
@@ -0,0 +1,7 @@
actual class My {
actual fun foo() {}
}
fun test() {
My().foo()
}
@@ -0,0 +1,8 @@
// "Safe delete 'foo'" "false"
// TOOL: org.jetbrains.kotlin.idea.inspections.UnusedSymbolInspection
// ACTION: Convert member to extension
// ACTION: Move to companion object
actual class My {
actual fun <caret>foo() {}
}
@@ -0,0 +1,8 @@
// "Safe delete 'foo'" "false"
// TOOL: org.jetbrains.kotlin.idea.inspections.UnusedSymbolInspection
// ACTION: Convert member to extension
// ACTION: Move to companion object
actual class My {
actual fun foo() {}
}