langtools/test/tools/javac/T4881267.java
author katleman
Thu, 21 Aug 2014 14:16:14 -0700
changeset 25878 6d561031123e
parent 20251 90a73be53aa0
permissions -rw-r--r--
Added tag jdk9-b27 for changeset 98ce0879ab4c

/*
 * @test /nodynamiccopyright/
 * @bug 4881267
 * @summary improve diagnostic for "instanceof T" for type parameter T
 * @compile/fail/ref=T4881267.out -XDrawDiagnostics T4881267.java
 */

class T4881267 {
    <T> void m(Object o) {
        boolean b = o instanceof T;
    }
}