Kotlin: add test for not found equivalent of MutableList.remove

This commit is contained in:
Tamas Vajk
2022-09-29 14:07:17 +02:00
parent 229c95a765
commit 64c953bee0
2 changed files with 5 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
diagnostics
| file://:0:0:0:0 | Couldn't find a Java equivalent function to kotlin.collections.MutableList.remove in java.util.List |
#select
| Integer |
| Object |

View File

@@ -1,3 +1,7 @@
fun test(m: Map<Int, Int>) = m.getOrDefault(1, 2)
fun test2(s: String) = s.length
fun remove(l: MutableList<Int>) {
l.remove(5)
}