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

literal expressions not type-safe #34

Open
ericrbg opened this issue Feb 7, 2024 · 0 comments
Open

literal expressions not type-safe #34

ericrbg opened this issue Feb 7, 2024 · 0 comments

Comments

@ericrbg
Copy link

ericrbg commented Feb 7, 2024

mwe:

import Qq
open Qq

def foo (a : Q(Bool)) : Prop := true

example : Prop :=
  let a : Q(Nat) := q(23)
  have := foo a
  have := foo q($a)
  false

the line that says foo a is totally fine, but foo q($a) errors as expected. It'd be nice if I didn't have to requote everything to get the type errors!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant