mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
		
			490 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			490 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
contract A {
 | 
						|
    function a() public pure {
 | 
						|
    }
 | 
						|
}
 | 
						|
contract B {
 | 
						|
    constructor(C) public {
 | 
						|
    }
 | 
						|
    function b(C) public returns (A) {
 | 
						|
        return new A();
 | 
						|
    }
 | 
						|
}
 | 
						|
contract C {
 | 
						|
    B m_b;
 | 
						|
    C m_c;
 | 
						|
    constructor(C other_c) public {
 | 
						|
        m_c = other_c;
 | 
						|
        m_b = new B(this);
 | 
						|
        m_b.b(this).a();
 | 
						|
        g(this).f();
 | 
						|
        other_c.f();
 | 
						|
        m_c.f();
 | 
						|
    }
 | 
						|
    function f() public pure {
 | 
						|
    }
 | 
						|
    function g(C) public view returns (C) {
 | 
						|
        return m_c;
 | 
						|
    }
 | 
						|
}
 |