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
The following code leads to an internal error because we have a circular dependency between D and C but the compiler does not detect it in the analysis phase:
library L{
function f() internal {
new C();
}
}
contract D {
function f() public {
L.f();
}
}
contract C {
constructor() { new D(); }
}
The same behaviour can be observed if L.f is replaced by a free function.