Commit f9bd627e authored by Ralf Jung's avatar Ralf Jung
Browse files

enable all warnings and fix them

parent bd617107
-Q solutions solutions
-Q exercises exercises
# non-canonical projections (https://github.com/coq/coq/pull/10076) do not exist yet in 8.9.
-arg -w -arg -redundant-canonical-projection
# change_no_check does not exist yet in 8.9.
-arg -w -arg -convert_concl_no_check
# "Declare Scope" does not exist yet in 8.9.
-arg -w -arg -undeclared-scope
# We have ambiguous paths and so far it is not even clear what they are (https://gitlab.mpi-sws.org/iris/iris/issues/240).
-arg -w -arg -ambiguous-paths
solutions/language.v
solutions/polymorphism.v
......
......@@ -52,6 +52,7 @@ Existing Instance sem_ty_persistent.
(** To obtain nice notations for the semantic types (as we will see in the file
[sem_type_formers.v]), we create a notation scope [sem_ty_scope] for semantic
types, which we bind to the type [sem_ty]. *)
Declare Scope sem_ty_scope.
Bind Scope sem_ty_scope with sem_ty.
Delimit Scope sem_ty_scope with sem_ty.
......
......@@ -21,6 +21,7 @@ some Coq notations for types. These notations are put in the notation scope
type [ty] using the notations in [type_scope]. When the type is not clear from
the context, one can write [τ%ty] to force Coq to parse [τ] using the notations
in [type_scope]. This is set up using the [Delimit Scope] command. *)
Declare Scope ty_scope.
Bind Scope ty_scope with ty.
Delimit Scope ty_scope with ty.
Notation "# x" := (TVar x) : ty_scope.
......
......@@ -52,6 +52,7 @@ Existing Instance sem_ty_persistent.
(** To obtain nice notations for the semantic types (as we will see in the file
[sem_type_formers.v]), we create a notation scope [sem_ty_scope] for semantic
types, which we bind to the type [sem_ty]. *)
Declare Scope sem_ty_scope.
Bind Scope sem_ty_scope with sem_ty.
Delimit Scope sem_ty_scope with sem_ty.
......
......@@ -21,6 +21,7 @@ some Coq notations for types. These notations are put in the notation scope
type [ty] using the notations in [type_scope]. When the type is not clear from
the context, one can write [τ%ty] to force Coq to parse [τ] using the notations
in [type_scope]. This is set up using the [Delimit Scope] command. *)
Declare Scope ty_scope.
Bind Scope ty_scope with ty.
Delimit Scope ty_scope with ty.
Notation "# x" := (TVar x) : ty_scope.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment