mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 10:59:18 +02:00
+ Patch from peter to fix typinfo for classes
This commit is contained in:
parent
1397425c4a
commit
41655fe0ac
@ -416,6 +416,15 @@ implementation
|
|||||||
consume(_LKLAMMER);
|
consume(_LKLAMMER);
|
||||||
in_args:=true;
|
in_args:=true;
|
||||||
p1:=comp_expr(true);
|
p1:=comp_expr(true);
|
||||||
|
{ When reading a class type it is parsed as loadvmtaddrn,
|
||||||
|
typeinfo only needs the type so we remove the loadvmtaddrn }
|
||||||
|
if p1.nodetype=loadvmtaddrn then
|
||||||
|
begin
|
||||||
|
p2:=tloadvmtaddrnode(p1).left;
|
||||||
|
tloadvmtaddrnode(p1).left:=nil;
|
||||||
|
p1.free;
|
||||||
|
p1:=p2;
|
||||||
|
end;
|
||||||
if p1.nodetype=typen then
|
if p1.nodetype=typen then
|
||||||
ttypenode(p1).allowed:=true
|
ttypenode(p1).allowed:=true
|
||||||
else
|
else
|
||||||
@ -2390,7 +2399,10 @@ implementation
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.158 2004-06-20 08:55:30 florian
|
Revision 1.159 2004-06-28 14:38:36 michael
|
||||||
|
+ Patch from peter to fix typinfo for classes
|
||||||
|
|
||||||
|
Revision 1.158 2004/06/20 08:55:30 florian
|
||||||
* logs truncated
|
* logs truncated
|
||||||
|
|
||||||
Revision 1.157 2004/06/16 20:07:09 florian
|
Revision 1.157 2004/06/16 20:07:09 florian
|
||||||
|
Loading…
Reference in New Issue
Block a user