mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 10:38:14 +02:00

known at compile time) * adjust error message when a method pointer isn't suitable + add tests
20 lines
249 B
ObjectPascal
20 lines
249 B
ObjectPascal
{ %FAIL }
|
|
|
|
program tprocvar20;
|
|
|
|
{$mode delphi}
|
|
|
|
type C = class
|
|
end;
|
|
type CC = class of C;
|
|
type H = class helper for C
|
|
class procedure Foo;
|
|
end;
|
|
class procedure H.Foo; begin end;
|
|
type T = procedure of object;
|
|
|
|
var ViaHelper: T = H.Foo;
|
|
|
|
begin
|
|
end.
|