pascalabcnet/TestSuite/classconst2.pas
Бондарев Иван 20b3c5a1c9 bug fix #566
2017-11-22 20:54:13 +01:00

13 lines
209 B
ObjectPascal

type
t1 = class
const a = sin(1);
class function test: real;
begin
Result := a;
end;
end;
begin
assert(abs(t1.test-sin(1)) < 0.000001);
assert(abs(t1.a-sin(1)) < 0.000001);
end.