mirror of
https://github.com/github/codeql.git
synced 2025-12-22 19:56:32 +01:00
Kotlin: Add test for missing kotlin to java property mapping
This commit is contained in:
@@ -1,2 +1,5 @@
|
||||
diagnostics
|
||||
| file://:0:0:0:0 | Couldn't find a Java equivalent function to kotlin.String.<get-length> in java.lang.String |
|
||||
#select
|
||||
| Integer |
|
||||
| Object |
|
||||
|
||||
@@ -1 +1,3 @@
|
||||
fun test(m: Map<Int, Int>) = m.getOrDefault(1, 2)
|
||||
|
||||
fun test2(s: String) = s.length
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
import java
|
||||
import semmle.code.java.Diagnostics
|
||||
|
||||
from MethodAccess ma
|
||||
select ma.getCallee().getAParameter().getType().toString()
|
||||
|
||||
query predicate diagnostics(Diagnostic d) { any() }
|
||||
|
||||
Reference in New Issue
Block a user