mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-05 23:10:27 +02:00
* don't generate a warning if a "generic" token follows while parsing procedure directives (let's hope we'll never have to add a "generic" directive :/ )
+ added test git-svn-id: trunk@34343 -
This commit is contained in:
parent
54874cccd6
commit
8b853571c6
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -12471,6 +12471,7 @@ tests/test/tgenfunc12.pp svneol=native#text/pascal
|
|||||||
tests/test/tgenfunc13.pp svneol=native#text/pascal
|
tests/test/tgenfunc13.pp svneol=native#text/pascal
|
||||||
tests/test/tgenfunc14.pp svneol=native#text/pascal
|
tests/test/tgenfunc14.pp svneol=native#text/pascal
|
||||||
tests/test/tgenfunc15.pp svneol=native#text/pascal
|
tests/test/tgenfunc15.pp svneol=native#text/pascal
|
||||||
|
tests/test/tgenfunc16.pp svneol=native#text/pascal
|
||||||
tests/test/tgenfunc2.pp svneol=native#text/pascal
|
tests/test/tgenfunc2.pp svneol=native#text/pascal
|
||||||
tests/test/tgenfunc3.pp svneol=native#text/pascal
|
tests/test/tgenfunc3.pp svneol=native#text/pascal
|
||||||
tests/test/tgenfunc4.pp svneol=native#text/pascal
|
tests/test/tgenfunc4.pp svneol=native#text/pascal
|
||||||
|
@ -2876,7 +2876,7 @@ const
|
|||||||
{ parsing a procvar type the name can be any
|
{ parsing a procvar type the name can be any
|
||||||
next variable !! }
|
next variable !! }
|
||||||
if ((pdflags * [pd_procvar,pd_object,pd_record,pd_objcclass,pd_objcprot])=[]) and
|
if ((pdflags * [pd_procvar,pd_object,pd_record,pd_objcclass,pd_objcprot])=[]) and
|
||||||
not(idtoken=_PROPERTY) then
|
not(idtoken in [_PROPERTY,_GENERIC]) then
|
||||||
Message1(parser_w_unknown_proc_directive_ignored,pattern);
|
Message1(parser_w_unknown_proc_directive_ignored,pattern);
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
|
21
tests/test/tgenfunc16.pp
Normal file
21
tests/test/tgenfunc16.pp
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
{ %OPT=-vw -Sew }
|
||||||
|
|
||||||
|
unit tgenfunc16;
|
||||||
|
|
||||||
|
interface
|
||||||
|
|
||||||
|
generic procedure Test<T>;
|
||||||
|
generic procedure Foo<T>;
|
||||||
|
|
||||||
|
implementation
|
||||||
|
|
||||||
|
generic procedure Test<T>;
|
||||||
|
begin
|
||||||
|
|
||||||
|
end;
|
||||||
|
|
||||||
|
generic procedure Foo<T>;
|
||||||
|
begin
|
||||||
|
end;
|
||||||
|
|
||||||
|
end.
|
Loading…
Reference in New Issue
Block a user