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

Reconstruction fails when getting a function #801

Closed
Ellpeck opened this issue May 18, 2024 · 0 comments · Fixed by #803
Closed

Reconstruction fails when getting a function #801

Ellpeck opened this issue May 18, 2024 · 0 comments · Fixed by #803
Assignees
Labels
bug Something isn't working reconstruct code deals with the code reoncsutrction at the end of the static slicing static slicing Related to slicing the source code statically

Comments

@Ellpeck
Copy link
Member

Ellpeck commented May 18, 2024

Slicing

a <- function() 1
b <- get("a")
b()

results in

a <- function() { }
b <- get("a")
b()

Note that the implicit 1 return is missing when it shouldn't be.

This test is part of #800.

@Ellpeck Ellpeck added static slicing Related to slicing the source code statically reconstruct code deals with the code reoncsutrction at the end of the static slicing labels May 18, 2024
@EagleoutIce EagleoutIce self-assigned this May 18, 2024
@EagleoutIce EagleoutIce added the bug Something isn't working label May 18, 2024
@EagleoutIce EagleoutIce linked a pull request May 18, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working reconstruct code deals with the code reoncsutrction at the end of the static slicing static slicing Related to slicing the source code statically
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants