1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
contract C { uint public x = 2; } function test() returns (bool) { return type(C).runtimeCode.length > 20; } contract D { function f() public returns (bool) { return test(); } } // ==== // compileViaYul: also // ---- // f() -> true