Unused symbol inspection: properties declared in primary constructor are now checked on 'Used' annotations #KT-11120 Fixed

This commit is contained in:
Mikhail Glukhikh
2016-05-11 13:37:01 +03:00
parent a098977c54
commit be2b37db5e
3 changed files with 17 additions and 3 deletions
@@ -25,4 +25,13 @@
<problem_class severity="WARNING" attribute_key="NOT_USED_ELEMENT_ATTRIBUTES">Unused Symbol</problem_class>
<description>Property 'unused' is never used</description>
</problem>
<problem>
<file>unusedButEntryPointAnnotated.kt</file>
<line>4</line>
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/unusedButEntryPointAnnotated.kt" />
<problem_class severity="WARNING" attribute_key="NOT_USED_ELEMENT_ATTRIBUTES">Unused symbol</problem_class>
<description>Class 'Owner' is never used</description>
</problem>
</problems>
@@ -1,2 +1,6 @@
@test.anno.EntryPoint
val entryPoint = ""
val entryPoint = ""
class Owner(@test.anno.EntryPoint val xx: Int) {
@test.anno.EntryPoint val yy = 42
}