mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
new inference: symmetric variable bounds
This commit is contained in:
+1
-1
@@ -3,6 +3,6 @@ import java.util.*;
|
||||
class Test {
|
||||
{
|
||||
Object obj = new Object();
|
||||
<error descr="Incompatible types. Found: 'java.util.Set<java.lang.Class<capture<? extends java.lang.Object>>>', required: 'java.util.Set<java.lang.Class<?>>'">Set<Class<?>> types = Collections.singleton(obj.getClass());</error>
|
||||
Set<Class<?>> types = Collections.singleton(obj.getClass());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user