mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
accept intersection types in foreach stmts (IDEA-125800)
This commit is contained in:
+10
@@ -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()) {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user