mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
subtyping constraint: accept array types if left type is assignable from array, e.g Serializable (IDEA-146592)
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
class Test {
|
||||
public void serialize(Serializable o) {}
|
||||
|
||||
public void foo(List<String> strings) {
|
||||
serialize(strings.toArray(new String[0]));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user