mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 15:39:24 +01:00 
			
		
		
		
	+ classrefdef is assignment compatible to pointers in delphi mode
git-svn-id: trunk@7648 -
This commit is contained in:
		
							parent
							
								
									563b325382
								
							
						
					
					
						commit
						c7037df254
					
				@ -1251,6 +1251,14 @@ implementation
 | 
			
		||||
                        eq:=te_convert_l1;
 | 
			
		||||
                    end;
 | 
			
		||||
                 end
 | 
			
		||||
               else
 | 
			
		||||
                 if (m_delphi in current_settings.modeswitches) and
 | 
			
		||||
                    is_voidpointer(def_from) then
 | 
			
		||||
                  begin
 | 
			
		||||
                    doconv:=tc_equal;
 | 
			
		||||
                    { prefer pointer-pointer assignments }
 | 
			
		||||
                    eq:=te_convert_l2;
 | 
			
		||||
                  end
 | 
			
		||||
                 else
 | 
			
		||||
                { nil is compatible with class references }
 | 
			
		||||
                if (fromtreetype=niln) then
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user