pascalabcnet/TestSuite/classconst1.pas
Бондарев Иван e6e67c193c initial commit
2015-05-14 21:35:07 +02:00

12 lines
186 B
ObjectPascal

type
cls = class
class function p: integer;
const c : array[1..5] of integer = (1,2,3,4,5);
begin
Result := c[2];
end;
end;
begin
assert(cls.p = 2);
end.