langtools/test/tools/javac/T4881267.java
author duke
Wed, 05 Jul 2017 23:01:50 +0200
changeset 44228 e46434c65a2b
parent 20251 90a73be53aa0
permissions -rw-r--r--
Merge

/*
 * @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;
    }
}