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

sema does not handle Linearization according to Solidity docs #1425

Open
xermicus opened this issue Jul 5, 2023 · 0 comments
Open

sema does not handle Linearization according to Solidity docs #1425

xermicus opened this issue Jul 5, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@xermicus
Copy link
Contributor

xermicus commented Jul 5, 2023

I'm reading through this section in the Solidity docs. Without diving into the code, I don't think we handles this correctly, because the following code compiles fine for the polkadot target (solc does not allow it):

// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.4.0 <0.9.0;

contract X { function a() public pure {} }
contract A is X { function b() public pure {} }
// This will not compile
contract C is A, X { function c() public pure {} }
@xermicus xermicus added the bug Something isn't working label Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants
@xermicus and others