mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			384 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			384 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
contract C {
 | 
						|
  function f() {
 | 
						|
    assembly {
 | 
						|
      c := add(add(1, 2), c)
 | 
						|
    }
 | 
						|
  }
 | 
						|
  int constant c = 0 + 1;
 | 
						|
}
 | 
						|
// ----
 | 
						|
// SyntaxError: (15-83): No visibility specified. Did you intend to add "public"?
 | 
						|
// TypeError: (71-72): Constant variables with non-literal values cannot be forward referenced from inline assembly.
 | 
						|
// TypeError: (51-52): Constant variables cannot be assigned to.
 |