fpc/tests/webtbf/tw40977.pp
florian b28681e91d * properly reject function calls as target of absolute, resolves #40977
* better error message on invalid expressions for absolute
2024-10-29 22:23:25 +01:00

17 lines
159 B
ObjectPascal

{ %fail }
program Project1;
procedure foo2;
begin
end;
procedure foo(bar: integer);
var x: integer absolute foo(1);
begin
foo2;
end;
begin
foo(1);
end.