|
@@ -103,7 +103,7 @@ implementation
|
|
{ parameter handling }
|
|
{ parameter handling }
|
|
paramgr,cpupara,
|
|
paramgr,cpupara,
|
|
{ pass 1 }
|
|
{ pass 1 }
|
|
- fmodule,node,htypechk,ncon,
|
|
|
|
|
|
+ fmodule,node,htypechk,ncon,ppu,
|
|
objcutil,
|
|
objcutil,
|
|
{ parser }
|
|
{ parser }
|
|
scanner,
|
|
scanner,
|
|
@@ -1078,6 +1078,10 @@ implementation
|
|
end;
|
|
end;
|
|
single_type(pd.returndef,[stoAllowSpecialization]);
|
|
single_type(pd.returndef,[stoAllowSpecialization]);
|
|
|
|
|
|
|
|
+ if ((pd.returndef=cvarianttype) or (pd.returndef=colevarianttype)) and
|
|
|
|
+ not(cs_compilesystem in current_settings.moduleswitches) then
|
|
|
|
+ current_module.flags:=current_module.flags or uf_uses_variants;
|
|
|
|
+
|
|
if is_dispinterface(pd.struct) and not is_automatable(pd.returndef) then
|
|
if is_dispinterface(pd.struct) and not is_automatable(pd.returndef) then
|
|
Message1(type_e_not_automatable,pd.returndef.typename);
|
|
Message1(type_e_not_automatable,pd.returndef.typename);
|
|
|
|
|