mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 12:39:27 +02:00
* added missing assignment check when searching for a symbol in a class, fixing bug #9673
* test program for above git-svn-id: trunk@8579 -
This commit is contained in:
parent
4525df9ea0
commit
37695af02b
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -8458,6 +8458,7 @@ 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/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
|
||||
|
@ -1658,7 +1658,7 @@ implementation
|
||||
begin
|
||||
result:=false;
|
||||
hashedid.id:=s;
|
||||
if assigned(current_procinfo.procdef) then
|
||||
if assigned(current_procinfo) and assigned(current_procinfo.procdef) then
|
||||
currentclassh:=current_procinfo.procdef._class
|
||||
else
|
||||
currentclassh:=nil;
|
||||
|
20
tests/webtbs/tw9673.pp
Normal file
20
tests/webtbs/tw9673.pp
Normal file
@ -0,0 +1,20 @@
|
||||
unit tw9673;
|
||||
|
||||
interface
|
||||
{$mode objfpc}
|
||||
|
||||
type
|
||||
Testclass = class
|
||||
|
||||
type
|
||||
TList = array of byte;
|
||||
|
||||
end;
|
||||
|
||||
var
|
||||
b : Testclass.TList;
|
||||
|
||||
|
||||
implementation
|
||||
begin
|
||||
end.
|
Loading…
Reference in New Issue
Block a user