mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			303 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			303 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| contract InvalidTest {
 | |
| 
 | |
|   function() internal storedFn;
 | |
| 
 | |
|   bool flag;
 | |
| 
 | |
|   constructor() public {
 | |
|     function() internal invalid;
 | |
|     storedFn = invalid;
 | |
|   }
 | |
|   function f() public returns (uint) {
 | |
|     if (flag) return 2;
 | |
|     flag = true;
 | |
|     storedFn();
 | |
|   }
 | |
| }
 | |
| // ----
 | |
| // f() -> FAILURE
 | |
| // f() -> FAILURE
 |