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

[Bug]: post member access assertion error #1602

Closed
0xalpharush opened this issue Jan 13, 2023 · 1 comment
Closed

[Bug]: post member access assertion error #1602

0xalpharush opened this issue Jan 13, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@0xalpharush
Copy link
Contributor

0xalpharush commented Jan 13, 2023

Describe the issue:

Max member of library.identifier doesn't work properly
Relevant code here

Code example to reproduce the issue:

library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }
}
contract Test {
    function test() public returns(Math.Rounding){
        return type(Math.Rounding).max;
    }
}

Version:

0.9.2

Relevant log output:

line 419, in _post_member_access
    assert isinstance(type_expression_found, Identifier)
AssertionError
@0xalpharush 0xalpharush added bug-candidate Bugs reports that are not yet confirmed bug Something isn't working and removed bug-candidate Bugs reports that are not yet confirmed labels Jan 13, 2023
@0xalpharush 0xalpharush changed the title [Bug]: [Bug]: post member access assertion error Jan 13, 2023
@0xalpharush
Copy link
Contributor Author

Prob a similar fix as this #1574

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

1 participant