mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	Fix: Function types for getters should not have storage pointers.
This commit is contained in:
		
							parent
							
								
									8ae6a76c58
								
							
						
					
					
						commit
						4da20bdf01
					
				| @ -2206,7 +2206,10 @@ FunctionType::FunctionType(VariableDeclaration const& _varDecl): | ||||
| 				if (auto arrayType = dynamic_cast<ArrayType const*>(member.type.get())) | ||||
| 					if (!arrayType->isByteArray()) | ||||
| 						continue; | ||||
| 				m_returnParameterTypes.push_back(member.type); | ||||
| 				m_returnParameterTypes.push_back(ReferenceType::copyForLocationIfReference( | ||||
| 					DataLocation::Memory, | ||||
| 					member.type | ||||
| 				)); | ||||
| 				m_returnParameterNames.push_back(member.name); | ||||
| 			} | ||||
| 		} | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user