mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
java 8: allow to cast to intersection types
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
import java.io.Serializable;
|
||||
|
||||
class X {
|
||||
|
||||
<T extends Integer & Serializable> void foo(T param) {}
|
||||
|
||||
{
|
||||
foo((Integer & Serializable)0);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user