| 1 |
// Test case for issue 2263 |
| 2 |
// https://github.com/typetools/checker-framework/issues/2263 |
| 3 |
|
| 4 |
import org.checkerframework.checker.initialization.qual.UnderInitialization; |
| 5 |
|
| 6 |
class ReceiverSuperInvocation { |
| 7 |
void foo(@UnderInitialization(ReceiverSuperInvocation.class) ReceiverSuperInvocation this) {} |
| 8 |
} |
| 9 |
|
| 10 |
class ReceiverSuperInvocationSubclass extends ReceiverSuperInvocation { |
| 11 |
@Override |
| 12 |
void foo(@UnderInitialization(Object.class) ReceiverSuperInvocationSubclass this) { |
| 13 |
// :: error: (method.invocation.invalid) |
| 14 |
super.foo(); |
| 15 |
} |
| 16 |
} |