mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			243 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			243 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| contract C {
 | |
|     uint256 public a;
 | |
|     modifier mod(uint256 x) {
 | |
|         a += x;
 | |
|         _;
 | |
|     }
 | |
| 
 | |
|     function f(uint256 x) public mod(2) mod(5) mod(x) returns (uint256) {
 | |
|         return a;
 | |
|     }
 | |
| }
 | |
| // ----
 | |
| // f(uint256): 3 -> 10
 | |
| // a() -> 10
 |