Skip to content

Commit ee24ab1

Browse files
sandwwraithSpace Team
authored andcommitted
[Stdlib] Add forgotten @IgnorableReturnValue on MutableEntry.setValue
It was added to Jvm, but missing in common and JS. Setting it helps with consistency between expects and actuals (see KT-77593)
1 parent 5427ca9 commit ee24ab1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

libraries/stdlib/js/builtins/Collections.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -780,6 +780,7 @@ public actual interface MutableMap<K, V> : Map<K, V> {
780780
*
781781
* @return the previous value corresponding to the key.
782782
*/
783+
@IgnorableReturnValue
783784
public actual fun setValue(newValue: V): V
784785
}
785786

libraries/stdlib/src/kotlin/Collections.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,7 @@ public expect interface MutableMap<K, V> : Map<K, V> {
716716
*
717717
* @return the previous value corresponding to the key.
718718
*/
719+
@IgnorableReturnValue
719720
public fun setValue(newValue: V): V
720721
}
721722
}

0 commit comments

Comments
 (0)