langtools/test/tools/javac/T4881267.java
author lana
Tue, 25 Apr 2017 07:38:50 +0000
changeset 44909 b53c770dc04f
parent 20251 90a73be53aa0
permissions -rw-r--r--
Added tag jdk-10+1 for changeset 3a409afd3f86

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