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

Top level use clause isn't respected within type declarations #5335

Open
pchiusano opened this issue Sep 8, 2024 · 0 comments
Open

Top level use clause isn't respected within type declarations #5335

pchiusano opened this issue Sep 8, 2024 · 0 comments
Labels

Comments

@pchiusano
Copy link
Member

type Woot.List = Oog

use Woot List

-- works great
foo : List -> Nat
foo = cases
  Oog -> 42

-- does not typecheck, unless I manually do `Woot.List` here
type Blah = Uno List | Dos List
    ❓
    
    I couldn't resolve any of these symbols:
    
       12 | type Blah = Uno List | Dos List
    
    
    Symbol   Suggestions
             
    List     Woot.List
             lib.base.data.List
@pchiusano pchiusano added the bug label Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant