mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			270 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			270 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
contract A {
 | 
						|
	uint x;
 | 
						|
	constructor (uint y) { assert(x == 0); x = y; }
 | 
						|
}
 | 
						|
 | 
						|
contract B is A {
 | 
						|
	constructor () A(2) { assert(x == 2); }
 | 
						|
}
 | 
						|
 | 
						|
contract C is B {
 | 
						|
	function f() public view {
 | 
						|
		assert(x == 2);
 | 
						|
	}
 | 
						|
}
 | 
						|
// ====
 | 
						|
// SMTEngine: all
 | 
						|
// SMTSolvers: z3
 | 
						|
// SMTIgnoreInv: yes
 |