Skip to content

Commit ebb52ad

Browse files
committed
Kotlin: add test for Java and Kotlin both extending Map.Entry
1 parent efc534a commit ebb52ad

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-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: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import java
2+
3+
from Method m, TypeVariable param
4+
where m.getDeclaringType().getQualifiedName() = "java.util.Map$Entry"
5+
and param = m.(GenericCallable).getATypeParameter()
6+
select m.toString(), param.toString(), param.getATypeBound().toString()

0 commit comments

Comments
 (0)