argotorg / argotorg/solidity

Errors from the base contracts can't be statically accessed from the inherited contracts

Open
#13,656 5 comments 0 reactions 0 assignees View on GitHub
low effort medium impact needs design
Dominant language
C++
Stars
25.7k
Forks
6.2k
Avg merge
1d 11h
Merged PRs (30d)
21

Description

```solidity
abstract contract Base {
error TestError();
}

contract Top is Base {
function f() external {
revert TestError();
}
}

function test() pure {
// This is fine
revert Base.TestError();
}

function bug() pure {
// Error: Member "TestError" not found or not visible after argument-dependent lookup in type(contract Top).
revert Top.TestError();
}
```

Contributor guide

Open the contributing guide

Research direction

Compile the minimal Solidity reproduction containing Base, Top, test, and bug, and inspect the compiler's member-lookup diagnostic for Top.TestError(). Trace how inherited custom errors are resolved when accessed through a derived contract. Done means the inherited error can be statically accessed as Top.TestError() while Base.TestError() and the existing revert in Top remain valid.

Written by the indexing model from the issue text.

Assessment

Tech stack
solidity
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.