aboutsummaryrefslogtreecommitdiffhomepage
path: root/kernel/subtyping.ml
diff options
context:
space:
mode:
authorGravatar Maxime Dénès <mail@maximedenes.fr>2017-07-28 18:23:46 +0200
committerGravatar Maxime Dénès <mail@maximedenes.fr>2017-07-28 18:23:46 +0200
commite8bb8ea0da02b926e076cf04ea1c82c547a30ea2 (patch)
tree1eadb6305528d826955cecc9b4dd6bcaccc0be86 /kernel/subtyping.ml
parent3828267b6dcd60088a11fe0b9613871e4fc7c54f (diff)
parentd9530632321c0b470ece6337cda2cf54d02d61eb (diff)
Merge PR #889: Removing template polymorphism for definitions.
Diffstat (limited to 'kernel/subtyping.ml')
-rw-r--r--kernel/subtyping.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/subtyping.ml b/kernel/subtyping.ml
index bd82dd465..b311165f1 100644
--- a/kernel/subtyping.ml
+++ b/kernel/subtyping.ml
@@ -313,8 +313,8 @@ let check_constant cst env mp1 l info1 cb2 spec2 subst1 subst2 =
error (PolymorphicStatusExpected false)
in
(* Now check types *)
- let typ1 = Typeops.type_of_constant_type env cb1.const_type in
- let typ2 = Typeops.type_of_constant_type env cb2.const_type in
+ let typ1 = cb1.const_type in
+ let typ2 = cb2.const_type in
let cst = check_type poly cst env typ1 typ2 in
(* Now we check the bodies:
- A transparent constant can only be implemented by a compatible