mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			5 lines
		
	
	
		
			292 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			5 lines
		
	
	
		
			292 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
contract A { function A() public {} }
 | 
						|
// ----
 | 
						|
// SyntaxError: (13-35): Functions are not allowed to have the same name as the contract. If you intend this to be a constructor, use "constructor(...) { ... }" to define it.
 | 
						|
// Warning: (13-35): This declaration shadows an existing declaration.
 |