mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			512 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			512 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
contract C {
 | 
						|
    function f() public pure {}
 | 
						|
    constructor() public {
 | 
						|
        C c = this;
 | 
						|
        c.f(); // this does not warn now, but should warn in the future
 | 
						|
        this.f();
 | 
						|
        (this).f();
 | 
						|
    }
 | 
						|
}
 | 
						|
// ----
 | 
						|
// Warning 5805: (172-176): "this" used in constructor. Note that external functions of a contract cannot be called while it is being constructed.
 | 
						|
// Warning 5805: (191-195): "this" used in constructor. Note that external functions of a contract cannot be called while it is being constructed.
 |