2 ms·
The point is that the type system doesn't properly reflect that. You should be able to declare a generic method that takes some T, and throws everything that T.
by int_19h 4y ago
The point is that the type system doesn't properly reflect that. You should be able to declare a generic method that takes some T, and throws everything that T.foo() throws, for example.