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 implicit arguments of record/inductive on hover #876

Open
Alizter opened this issue Nov 19, 2024 · 0 comments
Open

Incorrect implicit arguments of record/inductive on hover #876

Alizter opened this issue Nov 19, 2024 · 0 comments
Labels
kind: bug Something isn't working

Comments

@Alizter
Copy link
Collaborator

Alizter commented Nov 19, 2024

When we do a hover request for an inductive type (record, class, inductive, coinductive...) we are not correctly displaying the implicit arguments as we would in other cases.

From Coq Require Import Prelude.

Unset Printing Notations.

(* Observe what happens on hover after Arguments: *)

Axiom T1 : forall A B C D, A * B * C * D.
Arguments T1 {A} B {C} D.
(* T1: forall {A : Type} (B : Type) {C : Type} (D : Type),
prod (prod (prod A B) C) D *)

Class T2 (A B C D : Type) := {}.
Arguments T2 {A} B {C} D.
(* T2 (A B C D : Type) : Prop *)

Record T3 (A B C D : Type) := {}.
Arguments T3 {A} B {C} D.
(* T3 (A B C D : Type) : Prop *)

Definition T4 (A B C D : Type) := (fun a b c d => True) A B C D.
Arguments T4 {A} B {C} D.
(* T4: forall {_ : Type} (_ : Type) {_ : Type} (_ : Type), Prop *)

Definition T5 (A B C D : Type) : Type. Proof. exact ((fun a b c d => True) A B C D). Qed.
Arguments T5 {A} B {C} D.
(* T5: forall {_ : Type} (_ : Type) {_ : Type} (_ : Type), Type *)

Inductive T6 (A B C D : Type) : Type := .
Arguments T6 {A} B {C} D.
(* T6 (A B C D : Type) : Type *)

CoInductive T7 (A B C D : Type) : Type := {}.
Arguments T7 {A} B {C} D.
(* T7 (A B C D : Type) : Type *)
@Alizter Alizter added the kind: bug Something isn't working label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant