mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 23:19:24 +02:00
* fixed wrong test number
git-svn-id: trunk@8735 -
This commit is contained in:
parent
6e5ff9b825
commit
0f4f080d91
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -8467,13 +8467,13 @@ tests/webtbs/tw9347a.pp svneol=native#text/plain
|
||||
tests/webtbs/tw9347b.pp svneol=native#text/plain
|
||||
tests/webtbs/tw9384.pp svneol=native#text/plain
|
||||
tests/webtbs/tw9385.pp svneol=native#text/plain
|
||||
tests/webtbs/tw9471.pp -text
|
||||
tests/webtbs/tw9667.pp svneol=native#text/plain
|
||||
tests/webtbs/tw9672.pp svneol=native#text/plain
|
||||
tests/webtbs/tw9673.pp -text
|
||||
tests/webtbs/tw9695.pp svneol=native#text/plain
|
||||
tests/webtbs/tw9704.pp svneol=native#text/plain
|
||||
tests/webtbs/tw9766.pp svneol=native#text/plain
|
||||
tests/webtbs/tw9827.pp svneol=native#text/plain
|
||||
tests/webtbs/ub1873.pp svneol=native#text/plain
|
||||
tests/webtbs/ub1883.pp svneol=native#text/plain
|
||||
tests/webtbs/uw0555.pp svneol=native#text/plain
|
||||
|
@ -1,27 +1,27 @@
|
||||
{$mode objfpc}
|
||||
|
||||
type
|
||||
generic GList<_T> = class
|
||||
var private
|
||||
i : integer;
|
||||
function some_func(): integer;
|
||||
end;
|
||||
|
||||
function GList.some_func(): integer;
|
||||
begin
|
||||
i := -1;
|
||||
Result := -1;
|
||||
end { some_func };
|
||||
|
||||
|
||||
type
|
||||
TA = specialize GList<integer>;
|
||||
var
|
||||
A : TA;
|
||||
|
||||
begin
|
||||
A:=TA.Create;
|
||||
if A.some_func<>-1 then
|
||||
halt(1);
|
||||
writeln('ok');
|
||||
end.
|
||||
{$mode objfpc}
|
||||
|
||||
type
|
||||
generic GList<_T> = class
|
||||
var private
|
||||
i : integer;
|
||||
function some_func(): integer;
|
||||
end;
|
||||
|
||||
function GList.some_func(): integer;
|
||||
begin
|
||||
i := -1;
|
||||
Result := -1;
|
||||
end { some_func };
|
||||
|
||||
|
||||
type
|
||||
TA = specialize GList<integer>;
|
||||
var
|
||||
A : TA;
|
||||
|
||||
begin
|
||||
A:=TA.Create;
|
||||
if A.some_func<>-1 then
|
||||
halt(1);
|
||||
writeln('ok');
|
||||
end.
|
Loading…
Reference in New Issue
Block a user