Add type aliases into UnusedSymbolInspection / safe delete

So #KT-16046 Fixed
This commit is contained in:
Mikhail Glukhikh
2017-07-21 13:09:13 +03:00
parent 951e8cd91a
commit dd0cf8219e
6 changed files with 33 additions and 0 deletions
@@ -0,0 +1,18 @@
<problems>
<problem>
<file>test.kt</file>
<line>4</line>
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/test.kt" />
<problem_class severity="WARNING" attribute_key="NOT_USED_ELEMENT_ATTRIBUTES">Unused symbol</problem_class>
<description>Type alias ''YourString'' is never used</description>
</problem>
<problem>
<file>test.kt</file>
<line>6</line>
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/test.kt" />
<problem_class severity="WARNING" attribute_key="NOT_USED_ELEMENT_ATTRIBUTES">Unused symbol</problem_class>
<description>Property ''ms'' is never used</description>
</problem>
</problems>
@@ -0,0 +1 @@
// INSPECTION_CLASS: org.jetbrains.kotlin.idea.inspections.UnusedSymbolInspection
@@ -0,0 +1,6 @@
typealias MyString = String
// unused
typealias YourString = String
val ms: MyString = ""