Added test for implicit receiver in class.
This commit is contained in:
@@ -0,0 +1,12 @@
|
|||||||
|
class A {
|
||||||
|
fun simple() {
|
||||||
|
}
|
||||||
|
|
||||||
|
fun Any.ext() {
|
||||||
|
simple()
|
||||||
|
}
|
||||||
|
|
||||||
|
fun Any.ext1() {
|
||||||
|
ext1()
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -31,4 +31,12 @@
|
|||||||
<problem_class severity="WARNING" attribute_key="NOT_USED_ELEMENT_ATTRIBUTES">Unused receiver parameter</problem_class>
|
<problem_class severity="WARNING" attribute_key="NOT_USED_ELEMENT_ATTRIBUTES">Unused receiver parameter</problem_class>
|
||||||
<description>Receiver parameter is never used</description>
|
<description>Receiver parameter is never used</description>
|
||||||
</problem>
|
</problem>
|
||||||
|
<problem>
|
||||||
|
<file>implicitReceiverInClass.kt</file>
|
||||||
|
<line>5</line>
|
||||||
|
<module>light_idea_test_case</module>
|
||||||
|
<entry_point TYPE="file" FQNAME="temp:///src/irrelevantCallInFunction.kt" />
|
||||||
|
<problem_class severity="WARNING" attribute_key="NOT_USED_ELEMENT_ATTRIBUTES">Unused receiver parameter</problem_class>
|
||||||
|
<description>Receiver parameter is never used</description>
|
||||||
|
</problem>
|
||||||
</problems>
|
</problems>
|
||||||
|
|||||||
Reference in New Issue
Block a user