mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			321 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			321 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
abstract contract AbstractContract {
 | 
						|
    constructor() public { }
 | 
						|
    function utterance() public returns (bytes32) { return "miaow"; }
 | 
						|
}
 | 
						|
 | 
						|
contract Test {
 | 
						|
    function create() public {
 | 
						|
       AbstractContract ac = new AbstractContract();
 | 
						|
    }
 | 
						|
}
 | 
						|
// ----
 | 
						|
// TypeError: (215-235): Cannot instantiate an abstract contract.
 |