Code-Inspect / flowr

A program slicer and dataflow analyzer for the R programming language.
https://github.com/Code-Inspect/flowr/wiki
GNU General Public License v3.0
14 stars 2 forks source link

Reconstruction fails when `get`ting a function #801

Closed Ellpeck closed 1 month ago

Ellpeck commented 1 month ago

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.