mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-30 21:00:30 +02:00
Added test for Mantis #24458 which was fixed in revision 24628.
git-svn-id: trunk@25509 -
This commit is contained in:
parent
baa700925c
commit
2da06b004e
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -13558,6 +13558,7 @@ tests/webtbs/tw2432.pp svneol=native#text/plain
|
||||
tests/webtbs/tw2435.pp svneol=native#text/plain
|
||||
tests/webtbs/tw2438.pp svneol=native#text/plain
|
||||
tests/webtbs/tw2442.pp svneol=native#text/plain
|
||||
tests/webtbs/tw24458.pp svneol=native#text/pascal
|
||||
tests/webtbs/tw24486.pp svneol=native#text/pascal
|
||||
tests/webtbs/tw2452.pp svneol=native#text/plain
|
||||
tests/webtbs/tw24536.pp svneol=native#text/plain
|
||||
|
20
tests/webtbs/tw24458.pp
Normal file
20
tests/webtbs/tw24458.pp
Normal file
@ -0,0 +1,20 @@
|
||||
{ %NORUN }
|
||||
|
||||
program tw24458;
|
||||
|
||||
{$mode delphi}
|
||||
|
||||
type
|
||||
TA<T: class> = class
|
||||
public
|
||||
procedure Foo(const AValue: T);
|
||||
end;
|
||||
|
||||
procedure TA<T>.Foo(const AValue: T);
|
||||
begin
|
||||
AValue.Free; // Error: identifier idents no member "Free"
|
||||
end;
|
||||
|
||||
begin
|
||||
|
||||
end.
|
Loading…
Reference in New Issue
Block a user