Do not count 'impl' or 'header' with implementations as unused #KT-15305 Fixed
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user