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

Warning when attempting to patternmatch on unimported constructors #388

Closed
sxhya opened this issue Mar 6, 2023 · 0 comments
Closed

Warning when attempting to patternmatch on unimported constructors #388

sxhya opened this issue Mar 6, 2023 · 0 comments
Assignees

Comments

@sxhya
Copy link
Collaborator

sxhya commented Mar 6, 2023

In this code sample true and false should be highlighted as variables, whose names clash with the names of the (unimported) constructors of the datatype Bool.

\import Data.Bool(Bool, if)

\func bar (b : Bool) : Nat => \case b \with {
  | true => 1
  | false => 0
} 
@sxhya sxhya added the feature label Mar 6, 2023
@sxhya sxhya self-assigned this Mar 6, 2023
@sxhya sxhya added the D-medium label Mar 28, 2023
@sxhya sxhya assigned alex999990009 and unassigned sxhya Jul 3, 2024
@sxhya sxhya closed this as completed in e22021d Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants