summaryrefslogtreecommitdiff
path: root/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA106985.java
blob: b11bfa46632cca4a8694dd488ac237dd27cc2f4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

import java.util.Map;

class Test {

  public static void main(String[] args) {
    Map<Integer, Object> map = <error descr="Inferred type 'java.lang.Object' for type parameter 'V' is not within its bound; should implement 'java.lang.Comparable'">make()</error>;
  }


  public static <K extends Comparable, V extends Comparable> Map<K,V> make() {
    return null;
  }

}