| 1 |
import testlib.wholeprograminference.qual.*; |
| 2 |
|
| 3 |
class IParent { |
| 4 |
int field; |
| 5 |
|
| 6 |
public void expectsBotNoSignature(int t) { |
| 7 |
// :: error: (argument.type.incompatible) |
| 8 |
expectsBot(t); |
| 9 |
// :: error: (argument.type.incompatible) |
| 10 |
expectsBot(field); |
| 11 |
} |
| 12 |
|
| 13 |
void expectsBot(@WholeProgramInferenceBottom int t) {} |
| 14 |
} |
| 15 |
|
| 16 |
class IChild extends IParent { |
| 17 |
void test1() { |
| 18 |
@WholeProgramInferenceBottom int bot = (@WholeProgramInferenceBottom int) 0; |
| 19 |
expectsBotNoSignature(bot); |
| 20 |
field = bot; |
| 21 |
} |
| 22 |
} |