incompatible-override-throws.java
tests/java_constraints/incompatible-override-throws.java · 8 line(s) · java
// EXPECT: IncompatibleOverrideThrows
class Base {
void read() throws java.io.IOException {}
}
class Derived extends Base {
void read() throws java.sql.SQLException {}
}