mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			343 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			343 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
contract C {
 | 
						|
    modifier mod1 {
 | 
						|
        uint8 a = 1;
 | 
						|
        uint8 b = 2;
 | 
						|
        _;
 | 
						|
    }
 | 
						|
    modifier mod2(bool a) {
 | 
						|
        if (a) return;
 | 
						|
        else _;
 | 
						|
    }
 | 
						|
 | 
						|
    function f(bool a) public mod1 mod2(a) returns (uint256 r) {
 | 
						|
        return 3;
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
// ====
 | 
						|
// compileToEwasm: also
 | 
						|
// ----
 | 
						|
// f(bool): true -> 0
 | 
						|
// f(bool): false -> 3
 |