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

Imported constructor is qualified with internal module when normalizing #1635

Closed
jespercockx opened this issue Aug 27, 2015 · 1 comment
Closed
Labels
modules Issues relating to the module system scope Issues relating to scope checking type: bug Issues and pull requests about actual bugs ux: display Issues relating to how terms are printed for display
Milestone

Comments

@jespercockx
Copy link
Member

I have one file Test1.agda

module Test1 (A : Set₁) where
data Foo : Set where
  foo : Foo

and another file Test2.agda

module Test2 where
open import Test1 Set

When I load Test2 and ask Agda to normalize foo, I would expect to get foo but I get .#Test1-137587325.foo instead.

The following attempt at a workaround also doesn't work:

module Test2 where
open import Test1 Set hiding (foo)
open Foo

but this one does:

module Test2 where
import Test1
open Test1 Set hiding (foo)
open Test1.Foo

This could be a duplicate of #896, but I'm not sure.

andreasabel added a commit that referenced this issue Aug 27, 2015
inverseScopeLookup no longer returns names containing .#xxx-nnn modules
created by

  open import M args

but still it does not return necessarily a name that is in scope.
@andreasabel andreasabel added this to the 2.4.4 milestone Aug 27, 2015
@andreasabel andreasabel added modules Issues relating to the module system scope Issues relating to scope checking ux: display Issues relating to how terms are printed for display labels Aug 27, 2015
@andreasabel
Copy link
Member

I closed #896, let's continue the work on this issue here.

@asr asr added the type: bug Issues and pull requests about actual bugs label Dec 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
modules Issues relating to the module system scope Issues relating to scope checking type: bug Issues and pull requests about actual bugs ux: display Issues relating to how terms are printed for display
Projects
None yet
Development

No branches or pull requests

3 participants