mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
Merge pull request #9280 from tamasvajk/kotlin-map-kj-properties
Kotlin: Fix missing kotlin to java property mapping
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
diagnostics
|
||||
#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