Fix "Unused import" for 'provideDelegate'

#KT-31319 Fixed
This commit is contained in:
Dmitry Gridin
2019-05-14 18:18:36 +07:00
parent 3914530fa8
commit eee8d0263d
14 changed files with 108 additions and 4 deletions
@@ -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()
}