Merge pull request #9280 from tamasvajk/kotlin-map-kj-properties

Kotlin: Fix missing kotlin to java property mapping
This commit is contained in:
Tamás Vajk
2022-05-24 13:16:29 +02:00
committed by GitHub
4 changed files with 21 additions and 1 deletions

View File

@@ -1,2 +1,4 @@
diagnostics
#select
| Integer |
| Object |

View File

@@ -1 +1,3 @@
fun test(m: Map<Int, Int>) = m.getOrDefault(1, 2)
fun test2(s: String) = s.length

View File

@@ -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() }