Fix false positive "Unused symbol" for type alias & private nested class/object
#KT-21526 Fixed #KT-30527 Fixed
This commit is contained in:
@@ -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{
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user