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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user