mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			504 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			504 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| ==== Source: s1.sol ====
 | |
| error E(uint);
 | |
| ==== Source: s2.sol ====
 | |
| import { E as Panic } from "s1.sol";
 | |
| contract C {
 | |
|     error E(uint);
 | |
|     function a() public pure {
 | |
|         revert Panic(1);
 | |
|     }
 | |
|     function b() public pure {
 | |
|         revert E(1);
 | |
|     }
 | |
| }
 | |
| // ====
 | |
| // compileToEwasm: also
 | |
| // ----
 | |
| // a() -> FAILURE, hex"002ff067", hex"0000000000000000000000000000000000000000000000000000000000000001"
 | |
| // b() -> FAILURE, hex"002ff067", hex"0000000000000000000000000000000000000000000000000000000000000001"
 |