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

Cannot resolve function call #487

Closed
DavePearce opened this issue Apr 7, 2015 · 3 comments
Closed

Cannot resolve function call #487

DavePearce opened this issue Apr 7, 2015 · 3 comments
Labels
Milestone

Comments

@DavePearce
Copy link
Member

The following exhibits a strange problem:

type tup is {int y, int x}

type point is {int y, int x} where (x > 0) && (y > 0)

function f(point p) -> point:
    return p

method main() -> point:
    tup z = {y: -2, x: 1}
    point p = f(z)
    return p

Specifically, the error message is:

./ConstrainedTuple_Invalid_1.whiley:11: cannot resolve as function or definition call
    point p = f(z)
              ^^^^

This is related to verification as it only shows up in that case.

@DavePearce
Copy link
Member Author

This seems potentially related to #469.

@DavePearce
Copy link
Member Author

This has something to do with the way parameters are handled in WyCS.

DavePearce added a commit that referenced this issue Apr 8, 2015
This was a fairly simple bug caused by incorrect treatment of parameters
going into WyAL (rembering that parameters to functions in WyAL are
handled in a rather "unique" fashion).
@DavePearce
Copy link
Member Author

Ok, fixed. Was simple problem relating to way that parameters were packaged up and passed into WyAL.

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

1 participant