mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
distinct prover: distinguish types when type parameter has bounds (IDEA-118037)
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
final class Test
|
||||
{
|
||||
class Foo
|
||||
{
|
||||
<T extends String> void foo(Class<T> clazz)
|
||||
{
|
||||
if (<error descr="Operator '==' cannot be applied to 'java.lang.Class<java.lang.Void>', 'java.lang.Class<T>'">Void.class == clazz</error>)
|
||||
{
|
||||
System.out.println("Yeah!");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user