Skip to content

Pass return types to DomainFuncApp as for FuncApp#490

Merged
tdardinier merged 1 commit into
masterfrom
DomainFuncApp-signature
Jan 28, 2021
Merged

Pass return types to DomainFuncApp as for FuncApp#490
tdardinier merged 1 commit into
masterfrom
DomainFuncApp-signature

Conversation

@cmatheja

@cmatheja cmatheja commented Jan 5, 2021

Copy link
Copy Markdown
Contributor

The constructor of DomainFuncApp currently requires that the function's return type is passed using call-by-name. If there is no good reason for this, it would be convenient for some frontends, e.g., Prusti, to pass the return type as for standard function applications.

Since the signature of domain function applications is changed - it now matches those of function applications - merging this PR may break some frontends.

The PR passes the test suites of carbon, silicon, and silver (except one test already failing in master).

@cmatheja cmatheja requested a review from fpoli January 5, 2021 13:11

@fpoli fpoli left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good to me. To fix that test that is failing on master it should be enough to use a more recent Java version, like this commit does.

@tdardinier tdardinier merged commit 54314a6 into master Jan 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants