mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 08:09:33 +02:00

* don't allow to apply the same hint directive twice * change parser_e_proc_dir_not_allowed to more generic variant parser_e_dir_not_allowed - they are similar and 'procedure' prefix does not give more information about the error. * maybe_parse_hint_directives() uses procdef settings for initial values + add tests git-svn-id: trunk@25720 -
15 lines
287 B
ObjectPascal
15 lines
287 B
ObjectPascal
{ %FAIL }
|
|
{ %NORUN }
|
|
program thintdir2b;
|
|
|
|
// don't allow to use hint modifier twice
|
|
|
|
{$mode delphi}
|
|
type
|
|
TTest = class(TObject)
|
|
public
|
|
procedure Test(); virtual; deprecated 'Do not use this method'; abstract; deprecated 'Use that method';
|
|
end;
|
|
begin
|
|
end.
|