mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			372 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			372 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| contract D {}
 | |
| 
 | |
| contract C {
 | |
| 	D public d;
 | |
| 
 | |
| 	function f() public view {
 | |
| 		D e = this.d();
 | |
| 		assert(e == d); // should hold
 | |
| 		assert(address(e) == address(this)); // should fail
 | |
| 	}
 | |
| }
 | |
| // ====
 | |
| // SMTEngine: all
 | |
| // ----
 | |
| // Warning 6328: (123-158): CHC: Assertion violation happens here.\nCounterexample:\nd = 0\ne = 0\n\nTransaction trace:\nC.constructor()\nState: d = 0\nC.f()
 |