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

Assigning a tuple expression to a record type should be possible #71

Open
emmanuel099 opened this issue Mar 2, 2018 · 1 comment
Open

Comments

@emmanuel099
Copy link

Example:

CASM init test

using Point = (x: Integer, y: Integer)

rule foo(p : Point) =
    skip

rule test =
    choose x, y in [1..10] do
        foo((x, y))

If the argument types are correct, then it should be possible to pass on a tuple expression also when a record is expected.

@emmanuel099 emmanuel099 added this to the release-berenice milestone Mar 2, 2018
@ppaulweber
Copy link
Contributor

Needs proper relaxation in the FE type inference pass.

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

No branches or pull requests

2 participants