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

Assignment to tuple not supported #727

Closed
denis-bogdanas opened this issue Mar 29, 2018 · 3 comments
Closed

Assignment to tuple not supported #727

denis-bogdanas opened this issue Mar 29, 2018 · 3 comments
Labels

Comments

@denis-bogdanas
Copy link

This code won't compile:

@public
def out_literals() -> (int128, address, bytes <= 4):
    return 1, 0x0000000000000000000000000000000000000000, "random"


@public
def test():
    a: int128
    b: address
    c: bytes <= 4
    (a, b, c) = self.out_literals()

Without assignment to tuples it's impossible to actually call a method that returns a tuple from the same contract. All tests for tuple carefully avoid this scenario.

@jacqueswww
Copy link
Contributor

This is a duplicate of #605 I belive, currently slated as post-beta.
Will add it to next weeks agenda, so we can consider post/pre beta on this ;)

@jacqueswww
Copy link
Contributor

Starting on this.

@jacqueswww
Copy link
Contributor

This has been fixed. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants