Skip to content

Commit 64c953b

Browse files
committed
Kotlin: add test for not found equivalent of MutableList.remove
1 parent 229c95a commit 64c953b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
diagnostics
2+
| file://:0:0:0:0 | Couldn't find a Java equivalent function to kotlin.collections.MutableList.remove in java.util.List |
23
#select
34
| Integer |
45
| Object |
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
fun test(m: Map<Int, Int>) = m.getOrDefault(1, 2)
22

33
fun test2(s: String) = s.length
4+
5+
fun remove(l: MutableList<Int>) {
6+
l.remove(5)
7+
}

0 commit comments

Comments
 (0)