mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-30 14:39:14 +02:00
* allow multiple passes on as nodes
git-svn-id: trunk@29741 -
This commit is contained in:
parent
eb6c73c3df
commit
aafec52a52
@ -4071,8 +4071,13 @@ implementation
|
||||
result:=nil;
|
||||
{ Passing a class type to an "as" expression cannot result in a class
|
||||
of that type to be constructed.
|
||||
|
||||
We could put this inside the if-block below, but this way it is
|
||||
safe for sure even if the code below changes
|
||||
}
|
||||
include(right.flags,nf_ignore_for_wpo);
|
||||
if assigned(right) then
|
||||
include(right.flags,nf_ignore_for_wpo);
|
||||
|
||||
if not assigned(call) then
|
||||
begin
|
||||
if is_class(left.resultdef) and
|
||||
|
Loading…
Reference in New Issue
Block a user