metacoq icon indicating copy to clipboard operation
metacoq copied to clipboard

Template polymorphism is not implemented

Open SimonBoulier opened this issue 7 years ago • 2 comments

Template polymorphism is not implemented. For template polymorphism see: refman The following compiles in Coq:

Definition T := {A : Type & {B : Type & A}}.

While it does not in Template Coq:

Require Import Template.TemplateCoqChecker.
Fail Template Check T.

I am not sure we will implement it because we can use full polymorphism instead but people should be aware of it. @mattam82 Do you confirm?

SimonBoulier avatar Feb 04 '18 07:02 SimonBoulier

Indeed, I’d rather avoid the complications but it’s not so hard to implement

mattam82 avatar Feb 04 '18 10:02 mattam82

This should be mentionned in the manual/readme

mattam82 avatar Jul 04 '18 16:07 mattam82