mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
nested conditional expressions: don't require nested to be poly if outer is not
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
class C {
|
||||
public static void main(Object o) {
|
||||
List l = (List)(o instanceof ArrayList ? (ArrayList)o : o instanceof List ? (List)o : o);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user