Make ReadOnlyProperty and PropertyDelegateProvider fun interfaces

This commit is contained in:
Ilya Gorbunov
2020-06-02 00:24:30 +03:00
parent d2ea108123
commit de6154980d
4 changed files with 32 additions and 8 deletions
@@ -19,11 +19,11 @@ public abstract class ObservableProperty<V> : kotlin.properties.ReadWritePropert
}
@kotlin.SinceKotlin(version = "1.4")
public interface PropertyDelegateProvider<in T, out D> {
public fun interface PropertyDelegateProvider<in T, out D> {
public abstract operator fun provideDelegate(thisRef: T, property: kotlin.reflect.KProperty<*>): D
}
public interface ReadOnlyProperty<in T, out V> {
public fun interface ReadOnlyProperty<in T, out V> {
public abstract operator fun getValue(thisRef: T, property: kotlin.reflect.KProperty<*>): V
}
+2 -2
View File
@@ -19,11 +19,11 @@ public abstract class ObservableProperty<V> : kotlin.properties.ReadWritePropert
}
@kotlin.SinceKotlin(version = "1.4")
public interface PropertyDelegateProvider<in T, out D> {
public fun interface PropertyDelegateProvider<in T, out D> {
public abstract operator fun provideDelegate(thisRef: T, property: kotlin.reflect.KProperty<*>): D
}
public interface ReadOnlyProperty<in T, out V> {
public fun interface ReadOnlyProperty<in T, out V> {
public abstract operator fun getValue(thisRef: T, property: kotlin.reflect.KProperty<*>): V
}