You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
F* treats function types with an erasable codomain as erasable themselves. For example, Type -> Type is erasable. If such a function type is hidden behind an interface, then F* will replace values of that function type by () which is incompatible with polymorphism. (In the same file, values of that type are erased to fun _ -> () which is fine.)
(Following up on the discussion we just had.)
F* treats function types with an erasable codomain as erasable themselves. For example,
Type -> Type
is erasable. If such a function type is hidden behind an interface, then F* will replace values of that function type by()
which is incompatible with polymorphism. (In the same file, values of that type are erased tofun _ -> ()
which is fine.)The last definition will crash, because
x
is incorrectly erased to()
, andgeneric_apply
then treats it as a function and calls it.The text was updated successfully, but these errors were encountered: