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

Incorrect checking for dependency on parameters #1553

Open
yav opened this issue Jul 24, 2023 · 0 comments
Open

Incorrect checking for dependency on parameters #1553

yav opened this issue Jul 24, 2023 · 0 comments
Labels
bug Something not working correctly

Comments

@yav
Copy link
Member

yav commented Jul 24, 2023

When the REPL is in the context of a functor, we cannot evaluate things that depend on the parameters, because these are not yet defined. However, the check to determine if something depends on a parameter is not quite right, as this case illustrates:

interface module I where                                                         
  x : [8]  

module F where                                                                   
  import interface module I                                                         
  y = x + 1

module G where                                                                   
                                                                                    
  import interface module I                                                         
  import F { interface I }                                                       
                                                                                 
  z = x + y 

If we load G adn try to evaluate y we get a panic. Likely this happens when we access something that's defined in a local module, but that definition depends on the parameters.

@yav yav added the bug Something not working correctly label Jul 24, 2023
@RyanGlScott RyanGlScott changed the title Incorrect checking for depency on parameters Incorrect checking for dependency on parameters Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something not working correctly
Projects
None yet
Development

No branches or pull requests

1 participant