![](/images/backgrounds/286549/hp-sunsoft-pascal-4-0-users-manual-549395235x1.png)
9
Thus, if you try to assign an integer value to a char variable, you receive a diagnostic as follows:
Mon Feb 13 13:16:20 1995 inchar.p:
E 25190 line 6 - Type clash: integer is incompatible with char
... 25560: Type of expression clashed with type of variable in assignment
In this case, one error produces a
The scalar Class
The only class whose meaning is not
type color = (red, green, blue)
For integers, the more precise denotation integer is used.
Procedure and Function Type Errors
For
Mon Feb 13 13:21:26 1995 sin.p:
E 10010 line 6 - Builtin function SIN takes exactly 1 argument
If the type of an argument is wrong, you receive a message similar to the following:
Mon Feb 13 13:31:14 1995 abs.p:
E 10180 line 8 - Argument to ABS must be of type integer or real, not char
Error Diagnostics | 211 |