* allow multiple passes on as nodes

git-svn-id: trunk@29741 -
This commit is contained in:
florian 2015-02-17 21:14:43 +00:00
parent eb6c73c3df
commit aafec52a52

View File

@ -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