void intcasts( @IntVal(1) int i){
@IntVal(3) int zi = (@IntVal(2) int)i;
}
ignores the cast and gives
error: [assignment.type.incompatible] incompatible types in assignment.
@IntVal(3) int zi = (@IntVal(2) int)i;
^
found : @IntVal(1) int
required: @IntVal(3L) int
ignores the cast and gives