Skip to content

Commit 70c74bf

Browse files
authored
Merge pull request github#9418 from smowton/smowton/admin/test-java-kotlin-map-entries
Kotlin: add test for Java and Kotlin both extending Map.Entry
2 parents 43907b6 + 3d63cec commit 70c74bf

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import java.util.Map;
2+
3+
public abstract class C<K, V> implements Map.Entry<K, V> { }
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
public abstract class B<K, V> : Map.Entry<K, V> { }
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
| comparingByKey | K | Comparable<? super K> |
2+
| comparingByValue | V | Comparable<? super V> |
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import java
2+
3+
from Method m, TypeVariable param
4+
where
5+
m.getDeclaringType().getQualifiedName() = "java.util.Map$Entry" and
6+
param = m.(GenericCallable).getATypeParameter()
7+
select m.toString(), param.toString(), param.getATypeBound().toString()

0 commit comments

Comments
 (0)