mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			341 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			341 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
contract C {
 | 
						|
 | 
						|
  function() internal storedFn;
 | 
						|
 | 
						|
  bool flag;
 | 
						|
 | 
						|
  constructor() {
 | 
						|
    if (!flag) {
 | 
						|
      flag = true;
 | 
						|
      function() internal invalid;
 | 
						|
      storedFn = invalid;
 | 
						|
      invalid();
 | 
						|
    }
 | 
						|
  }
 | 
						|
  function f() public pure {}
 | 
						|
}
 | 
						|
contract Test {
 | 
						|
  function f() public {
 | 
						|
    new C();
 | 
						|
  }
 | 
						|
}
 | 
						|
// ----
 | 
						|
// f() -> FAILURE, hex"4e487b71", 0x51
 |