mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
treat Object[] (IDEA-99061)
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
class Test {
|
||||
{
|
||||
String a = cast("str");
|
||||
Integer[] b = cast(new Integer[0]);
|
||||
Object[] c = cast(new Object[0]);
|
||||
}
|
||||
|
||||
private <T> T cast(Object obj) {
|
||||
return (T)obj;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user