mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			310 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			310 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
==== Source: a ====
 | 
						|
bytes32 constant x = x;
 | 
						|
==== Source: b ====
 | 
						|
import "a";
 | 
						|
contract C {
 | 
						|
    function f() public pure returns (uint t) {
 | 
						|
        assembly {
 | 
						|
            // Reference to a circular member
 | 
						|
            t := x
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 | 
						|
// ----
 | 
						|
// TypeError 3558: (b:155-156): Constant variable is circular.
 |