FStarLang/FStar
Ver no GitHubFailure of type inference with repeated variables
Open
#1.007 aberto em 21 de abr. de 2017
area/proof-assistantcomponent/typecheckercomponent/unifiergood first issuekind/enhancementmilestone/everest-v1
Métricas do repositório
- Stars
- (3.068 stars)
- Métricas de merge de PR
- (Métricas PR pendentes)
Description
Lax-typechecking the following snippet
let f (x y : int) (w:(b:bool & (if b then equals x y else equals y x))) =
match w with
| (| b, Refl |) -> ()
fails with the error
(Error) (equals (?26524 x y w b) (?26524 x y w b)) is not a subtype of the expected type (match b with
| true -> (equals x y)
|_ -> (equals y x))