diff --git a/libraries/stdlib/src/kotlin/properties/Interfaces.kt b/libraries/stdlib/src/kotlin/properties/Interfaces.kt index 7e78dc4a46f..52c38251410 100644 --- a/libraries/stdlib/src/kotlin/properties/Interfaces.kt +++ b/libraries/stdlib/src/kotlin/properties/Interfaces.kt @@ -35,14 +35,14 @@ public interface ReadOnlyProperty { * @param T the type of object which owns the delegated property. * @param V the type of the property value. */ -public interface ReadWriteProperty { +public interface ReadWriteProperty : ReadOnlyProperty { /** * 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. diff --git a/libraries/tools/binary-compatibility-validator/reference-public-api/kotlin-stdlib-runtime-merged.txt b/libraries/tools/binary-compatibility-validator/reference-public-api/kotlin-stdlib-runtime-merged.txt index f3e9088c526..edb749fc7e9 100644 --- a/libraries/tools/binary-compatibility-validator/reference-public-api/kotlin-stdlib-runtime-merged.txt +++ b/libraries/tools/binary-compatibility-validator/reference-public-api/kotlin-stdlib-runtime-merged.txt @@ -3894,7 +3894,7 @@ public abstract interface class kotlin/properties/ReadOnlyProperty { public abstract fun getValue (Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object; } -public abstract interface class kotlin/properties/ReadWriteProperty { +public abstract interface class kotlin/properties/ReadWriteProperty : kotlin/properties/ReadOnlyProperty { public abstract fun getValue (Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object; public abstract fun setValue (Ljava/lang/Object;Lkotlin/reflect/KProperty;Ljava/lang/Object;)V }