| 1 |
import testlib.wholeprograminference.qual.*; |
| 2 |
|
| 3 |
public class ConstructorTest { |
| 4 |
|
| 5 |
public ConstructorTest(int top) {} |
| 6 |
|
| 7 |
void test() { |
| 8 |
@Top int top = (@Top int) 0; |
| 9 |
// :: error: (argument.type.incompatible) |
| 10 |
new ConstructorTest(top); |
| 11 |
} |
| 12 |
} |