2 ms·
Ah because there is no way to express E1 | E2 as a type parameter?
by catlifeonmars 2y ago
Ah because there is no way to express E1 | E2 as a type parameter?
- lmm 2y agoYeah. Ironically the JLS includes a complete specification of what the type E1|E2 is, because if you write a catch block that catches both then that's the type of what you catch, there's just no syntax for it.