mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-06 15:29:24 +01:00
* fix for Mantis #30530: when the global/static symtable is reached defowner is Nil, so respect that in the loop condition
+ added test git-svn-id: trunk@34532 -
This commit is contained in:
parent
531829c072
commit
ce18b10c81
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -15224,6 +15224,7 @@ tests/webtbs/tw30443.pp svneol=native#text/plain
|
|||||||
tests/webtbs/tw3045.pp svneol=native#text/plain
|
tests/webtbs/tw3045.pp svneol=native#text/plain
|
||||||
tests/webtbs/tw3048.pp svneol=native#text/plain
|
tests/webtbs/tw3048.pp svneol=native#text/plain
|
||||||
tests/webtbs/tw30522.pp svneol=native#text/plain
|
tests/webtbs/tw30522.pp svneol=native#text/plain
|
||||||
|
tests/webtbs/tw30530.pp svneol=native#text/pascal
|
||||||
tests/webtbs/tw30534.pp svneol=native#text/pascal
|
tests/webtbs/tw30534.pp svneol=native#text/pascal
|
||||||
tests/webtbs/tw30537.pp svneol=native#text/pascal
|
tests/webtbs/tw30537.pp svneol=native#text/pascal
|
||||||
tests/webtbs/tw30570.pp svneol=native#text/plain
|
tests/webtbs/tw30570.pp svneol=native#text/plain
|
||||||
|
|||||||
@ -2830,7 +2830,7 @@ implementation
|
|||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
def:=tdef(def.owner.defowner);
|
def:=tdef(def.owner.defowner);
|
||||||
until not (def.typ in [recorddef,objectdef]);
|
until not assigned(def) or not (def.typ in [recorddef,objectdef]);
|
||||||
result:=nil;
|
result:=nil;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|||||||
18
tests/webtbs/tw30530.pp
Normal file
18
tests/webtbs/tw30530.pp
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
unit tw30530;
|
||||||
|
|
||||||
|
{$mode objfpc}{$H+}
|
||||||
|
|
||||||
|
interface
|
||||||
|
|
||||||
|
uses
|
||||||
|
{Classes, SysUtils, }Generics.Collections;
|
||||||
|
|
||||||
|
type
|
||||||
|
|
||||||
|
//generic TMyList<T> = class(specialize TObjectList<T>);
|
||||||
|
generic TMyList<T: class> = class(specialize TObjectList<T>);
|
||||||
|
//generic TMyList<T: class> = class(specialize TObjectList<T>) end;
|
||||||
|
|
||||||
|
implementation
|
||||||
|
|
||||||
|
end.
|
||||||
Loading…
Reference in New Issue
Block a user