Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect Handling of derived interface #223

Open
Subway2023 opened this issue Mar 2, 2025 · 1 comment
Open

Incorrect Handling of derived interface #223

Subway2023 opened this issue Mar 2, 2025 · 1 comment
Labels
C-bug Category: this is a bug

Comments

@Subway2023
Copy link

interface Base1 {
    function test() external view returns (uint);
}

interface Base2 {
    function test() external view returns (uint);
}

interface Derived is Base1, Base2 {
}

solar --version: 0.1.1
solc reports an error when compiling this program, but solar does not.

solc test.sol

Error: Derived contract must override function "test". Two or more base classes define function with same name and parameter types.
  --> test.sol:10:1:
   |
10 | interface Derived is Base1, Base2 {
   | ^ (Relevant source part starts here and spans across multiple lines).
Note: Definition in "Base1":            ^^^^^^^^^^
@Subway2023 Subway2023 added the C-bug Category: this is a bug label Mar 2, 2025
@Ayushdubey86
Copy link

can i look into this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: this is a bug
Projects
None yet
Development

No branches or pull requests

2 participants