You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
solc version: 0.8.29
description: The statement bytes4 public constant s2 = B.g.selector; causes a compilation error, but removing public resolves the issue.
interfaceA {
function f() external;
}
contractB {
function g() public {}
}
contractCisB {
function h() external {}
bytes4constant s1 = A.f.selector;
bytes4public constant s2 = B.g.selector;
bytes4constant s3 =this.h.selector;
bytes4constant s4 =super.g.selector;
}