Inherit ReadWriteProperty from ReadOnlyProperty #KT-27729

This commit is contained in:
Abduqodiri Qurbonzoda
2020-02-27 18:12:29 +03:00
parent 3742586209
commit a32f742893
2 changed files with 3 additions and 3 deletions
@@ -35,14 +35,14 @@ public interface ReadOnlyProperty<in T, out V> {
* @param T the type of object which owns the delegated property.
* @param V the type of the property value.
*/
public interface ReadWriteProperty<in T, V> {
public interface ReadWriteProperty<in T, V> : ReadOnlyProperty<T, V> {
/**
* Returns the value of the property for the given object.
* @param thisRef the object for which the value is requested.
* @param property the metadata for the property.
* @return the property value.
*/
public operator fun getValue(thisRef: T, property: KProperty<*>): V
public override operator fun getValue(thisRef: T, property: KProperty<*>): V
/**
* Sets the value of the property for the given object.