| 12345678910111213 |
- { t54_strcat_strnum: `s + 1' - a string and a number - is a type error.
- A STRING operand makes `+' the concatenation operator, and then BOTH operands
- must be strings or CHARs; a number is not one. The string on the left is
- what selects the concatenation path, and the number then fails the string
- operand test. Expected: ETypeErr (56) at the `+'. }
- program t54_strcat_strnum (input, output);
- var
- s : string[8];
- begin
- s := 'abc';
- writeln (s + 1)
- end.
|