Do not count 'impl' or 'header' with implementations as unused #KT-15305 Fixed

This commit is contained in:
Mikhail Glukhikh
2017-01-10 16:41:18 +03:00
parent 586246002c
commit 31a8689999
3 changed files with 39 additions and 8 deletions
@@ -0,0 +1,9 @@
// No "unused symbol" should be reported here
header class My
impl class My
// But this should be reported
header val bar: String
@@ -63,4 +63,12 @@
<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>8</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>Property ''bar'' is never used</description>
</problem>
</problems>