mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	ADT-constructor generation crashed in .NET/Java when no (= default) fields are given (#6287)
This commit is contained in:
		
							parent
							
								
									6ba9ada1e2
								
							
						
					
					
						commit
						56fb161532
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -124,7 +124,7 @@ namespace Microsoft.Z3
 | 
			
		|||
        /// </summary>
 | 
			
		||||
        internal Symbol[] MkSymbols(string[] names)
 | 
			
		||||
        {
 | 
			
		||||
            if (names == null) return null;
 | 
			
		||||
            if (names == null) return new Symbol[0];
 | 
			
		||||
            Symbol[] result = new Symbol[names.Length];
 | 
			
		||||
            for (int i = 0; i < names.Length; ++i) result[i] = MkSymbol(names[i]);
 | 
			
		||||
            return result;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -110,7 +110,7 @@ public class Context implements AutoCloseable {
 | 
			
		|||
    Symbol[] mkSymbols(String[] names)
 | 
			
		||||
    {
 | 
			
		||||
        if (names == null)
 | 
			
		||||
            return null;
 | 
			
		||||
            return new Symbol[0];
 | 
			
		||||
        Symbol[] result = new Symbol[names.length];
 | 
			
		||||
        for (int i = 0; i < names.length; ++i)
 | 
			
		||||
            result[i] = mkSymbol(names[i]);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue