mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-23 00:09:31 +02:00
* delphi mode only
This commit is contained in:
parent
2b6f661cbc
commit
0692123640
@ -2,24 +2,24 @@
|
||||
{ This program should fail compilation, since
|
||||
the declaration is not the same as the actual
|
||||
implementation, checked against Delphi 3 -
|
||||
the class keyword is missing in front
|
||||
the class keyword is missing in front
|
||||
of procedure tmyclass.myproc
|
||||
}
|
||||
{$ifdef fpc}
|
||||
{$mode objfpc}
|
||||
{$mode delphi}
|
||||
{$endif}
|
||||
type
|
||||
tmyclass = class
|
||||
class procedure myproc;virtual;
|
||||
end;
|
||||
|
||||
|
||||
{ missing class keyword in front of procedure }
|
||||
procedure tmyclass.myproc;
|
||||
begin
|
||||
end;
|
||||
|
||||
|
||||
|
||||
Begin
|
||||
end.
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user