12 lines
254 B
OpenEdge ABL
12 lines
254 B
OpenEdge ABL
% ERROR EXAMPLE — numeric literal out of subrange (§11.3)
|
|
% Expected: Pc: type error: value ... out of range for {0 TO 255}
|
|
|
|
SECTION err_out_of_range;
|
|
|
|
TYPE char {0 TO 255};
|
|
|
|
DCL demo PROC() IS
|
|
BLOCK
|
|
DCL ch char;
|
|
300 -> ch;
|
|
ENDBLOCK; |