mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Kotlin: add test for Java and Kotlin both extending Map.Entry
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
import java.util.Map;
|
||||
|
||||
public abstract class C<K, V> implements Map.Entry<K, V> { }
|
||||
@@ -0,0 +1 @@
|
||||
public abstract class B<K, V> : Map.Entry<K, V> { }
|
||||
@@ -0,0 +1,2 @@
|
||||
| comparingByKey | K | Comparable<? super K> |
|
||||
| comparingByValue | V | Comparable<? super V> |
|
||||
@@ -0,0 +1,6 @@
|
||||
import java
|
||||
|
||||
from Method m, TypeVariable param
|
||||
where m.getDeclaringType().getQualifiedName() = "java.util.Map$Entry"
|
||||
and param = m.(GenericCallable).getATypeParameter()
|
||||
select m.toString(), param.toString(), param.getATypeBound().toString()
|
||||
Reference in New Issue
Block a user