mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
new inference: initial tests
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