Fix "Unused import" for 'provideDelegate'
#KT-31319 Fixed
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package a
|
||||
|
||||
import kotlin.properties.ReadOnlyProperty
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
class C
|
||||
operator fun C.provideDelegate(thisRef: Any, prop: KProperty<*>): ReadOnlyProperty<Any, C> = TODO()
|
||||
@@ -0,0 +1,8 @@
|
||||
package b
|
||||
|
||||
import a.C
|
||||
import a.provideDelegate
|
||||
|
||||
class Example {
|
||||
val c: C = C()
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package b
|
||||
|
||||
import a.C
|
||||
|
||||
class Example {
|
||||
val c: C = C()
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package a
|
||||
|
||||
import kotlin.properties.ReadOnlyProperty
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
class C
|
||||
operator fun C.provideDelegate(thisRef: Any, prop: KProperty<*>): ReadOnlyProperty<Any, C> = TODO()
|
||||
@@ -0,0 +1,8 @@
|
||||
package b
|
||||
|
||||
import a.C
|
||||
import a.provideDelegate
|
||||
|
||||
class Example {
|
||||
val c: C by C()
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package b
|
||||
|
||||
import a.C
|
||||
import a.provideDelegate
|
||||
|
||||
class Example {
|
||||
val c: C by C()
|
||||
}
|
||||
@@ -106,4 +106,13 @@
|
||||
<problem_class severity="WARNING" attribute_key="NOT_USED_ELEMENT_ATTRIBUTES">Unused import directive</problem_class>
|
||||
<description>Unused import directive</description>
|
||||
</problem>
|
||||
|
||||
<problem>
|
||||
<file>provideDelegate.kt</file>
|
||||
<line>2</line>
|
||||
<module>light_idea_test_case</module>
|
||||
<entry_point TYPE="file" FQNAME="provideDelegate.kt" />
|
||||
<problem_class severity="WARNING" attribute_key="NOT_USED_ELEMENT_ATTRIBUTES">Unused import directive</problem_class>
|
||||
<description>Unused import directive</description>
|
||||
</problem>
|
||||
</problems>
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
package onetwo
|
||||
|
||||
import kotlin.properties.ReadOnlyProperty
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
class C
|
||||
operator fun C.provideDelegate(thisRef: Any, prop: KProperty<*>): ReadOnlyProperty<Any, C> = TODO()
|
||||
@@ -0,0 +1,6 @@
|
||||
import onetwo.C
|
||||
import onetwo.provideDelegate
|
||||
|
||||
class Example {
|
||||
val c: C by C()
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package a
|
||||
|
||||
import kotlin.properties.ReadOnlyProperty
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
class C
|
||||
operator fun C.provideDelegate(thisRef: Any, prop: KProperty<*>): ReadOnlyProperty<Any, C> = TODO()
|
||||
@@ -0,0 +1,6 @@
|
||||
import a.C
|
||||
import a.provideDelegate
|
||||
|
||||
class Example {
|
||||
val c = C()
|
||||
}
|
||||
Reference in New Issue
Block a user