mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			435 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			435 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
contract C {
 | 
						|
  bool constant c = this;
 | 
						|
  function f() public {
 | 
						|
    assembly {
 | 
						|
        let t := c
 | 
						|
    }
 | 
						|
  }
 | 
						|
}
 | 
						|
// ----
 | 
						|
// TypeError 7407: (33-37): Type contract C is not implicitly convertible to expected type bool.
 | 
						|
// TypeError 8349: (33-37): Initial value for constant variable has to be compile-time constant.
 | 
						|
// TypeError 7615: (95-96): Only direct number constants and references to such constants are supported by inline assembly.
 |