java 8: allow to cast to intersection types

This commit is contained in:
Anna Kozlova
2014-02-19 09:46:17 +01:00
parent d22feaa947
commit 1b0e87f99e
3 changed files with 20 additions and 0 deletions
@@ -0,0 +1,10 @@
import java.io.Serializable;
class X {
<T extends Integer & Serializable> void foo(T param) {}
{
foo((Integer & Serializable)0);
}
}