pascalabcnet/TestSuite/formatstring1.pas
2018-03-21 21:01:54 +01:00

11 lines
137 B
ObjectPascal

type
TRec = record
a: integer;
end;
begin
var x: TRec;
x.a := 2;
var s := $'Hello {x.a}';
assert(s = 'Hello 2');
end.