accept intersection types in foreach stmts (IDEA-125800)

This commit is contained in:
Anna Kozlova
2014-06-03 11:31:16 +04:00
parent f1d927b6ea
commit b1b3b1db37
3 changed files with 19 additions and 0 deletions
@@ -0,0 +1,10 @@
import java.util.List;
abstract class Test {
abstract <T extends List<String> & Runnable> T list();
public void test()
{
for (String s : list()) {}
}
}