mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
Kotlin: add test for not found equivalent of MutableList.remove
This commit is contained in:
@@ -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 |
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user