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

Allow using complex type as a map key #711

Open
Tracked by #716
Y-Nak opened this issue May 20, 2022 · 0 comments
Open
Tracked by #716

Allow using complex type as a map key #711

Y-Nak opened this issue May 20, 2022 · 0 comments
Labels
comp: analyzer Everything that involves the analyzer pass comp: codegen

Comments

@Y-Nak
Copy link
Member

Y-Nak commented May 20, 2022

What is wrong?

Currently, using a complex type as a map key is not allowed.
It'd be better to relax this restriction.

struct MyStruct:
    x: u256
    y: u256
    
    
contract Foo:
    s: Map<MyStruct, u256>

How can it be fixed

New codegen allow this feature, so just removing the checking in analyzer would work if there is no bug in codegen.

@Y-Nak Y-Nak added comp: analyzer Everything that involves the analyzer pass comp: codegen labels May 20, 2022
@Y-Nak Y-Nak mentioned this issue May 23, 2022
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp: analyzer Everything that involves the analyzer pass comp: codegen
Projects
None yet
Development

No branches or pull requests

1 participant