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

Output parameters should not shadow into slices #333

Open
gcampax opened this issue Apr 10, 2021 · 0 comments
Open

Output parameters should not shadow into slices #333

gcampax opened this issue Apr 10, 2021 · 0 comments
Labels
bug P2 We need to fix it (backlog)

Comments

@gcampax
Copy link
Contributor

gcampax commented Apr 10, 2021

The following program, while very weird, should typecheck:

monitor(@com.xkcd.comic()) => @com.smartnews.article()[1 : id];

(note that id is a number for Xkcd)

Instead it does not typecheck because the id of the article shadows the id of Xkcd, which does not make any sense from an operational semantic POV.

(We generate this program because SmartNews has a primitive template for ${count} articles)

@gcampax gcampax added the bug label Apr 10, 2021
@nrser nrser added the P2 We need to fix it (backlog) label Aug 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug P2 We need to fix it (backlog)
Projects
None yet
Development

No branches or pull requests

2 participants