Unused symbol: remove forced "used" from actual declarations

Now we really check whether actual declaration has usages
(in expect or actual code) or not
Related to KT-17512
Related to KT-15666
This commit is contained in:
Mikhail Glukhikh
2018-06-20 18:51:18 +03:00
parent e885e54233
commit 7e0e7dc983
16 changed files with 135 additions and 75 deletions
+2 -2
View File
@@ -1,9 +1,9 @@
// No "unused symbol" should be reported here
expect class My
// But this should be reported
actual class My
// But this should be reported
// And this too
expect val bar: String
@@ -63,6 +63,14 @@
<problem_class severity="WARNING" attribute_key="NOT_USED_ELEMENT_ATTRIBUTES">Unused symbol</problem_class>
<description>Class 'Some' is never used</description>
</problem>
<problem>
<file>headerImpl.kt</file>
<line>5</line>
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/headerImpl.kt" />
<problem_class severity="WARNING" attribute_key="NOT_USED_ELEMENT_ATTRIBUTES">Unused symbol</problem_class>
<description>Class 'My' is never used</description>
</problem>
<problem>
<file>headerImpl.kt</file>
<line>8</line>