Fix false positive "Unused symbol" for type alias & private nested class/object

#KT-21526 Fixed
 #KT-30527 Fixed
This commit is contained in:
Dmitry Gridin
2019-03-25 15:46:03 +07:00
parent 4441b1579f
commit 74cd53963d
10 changed files with 181 additions and 38 deletions
@@ -0,0 +1,8 @@
// "Safe delete 'NamedObject'" "true"
import TestClass.NamedObject
class TestClass{
private object NamedObject<caret> {
const val CONST = "abc"
}
}
@@ -0,0 +1,4 @@
// "Safe delete 'NamedObject'" "true"
class TestClass{
}
+9
View File
@@ -0,0 +1,9 @@
// "Safe delete 'Other'" "true"
import Other
enum class MyEnum {
HELLO,
WORLD
}
typealias Other<caret> = MyEnum
@@ -0,0 +1,7 @@
// "Safe delete 'Other'" "true"
enum class MyEnum {
HELLO,
WORLD
}