Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cduce
cduce
Commits
aa9f6654
Commit
aa9f6654
authored
Dec 14, 2014
by
Kim Nguyễn
Browse files
In Positive, only update the kind of variables not in delta.
parent
d4737ec1
Changes
1
Hide whitespace changes
Inline
Side-by-side
types/types.ml
View file @
aa9f6654
...
...
@@ -2843,7 +2843,10 @@ module Positive = struct
apply_subst
~
subst
:
subst
t
let
substitute_kind
delta
kind
t
=
let
subst
d
=
var
(
Var
.
set_kind
kind
d
)
in
let
subst
d
=
if
Var
.
Set
.
mem
d
delta
then
var
d
else
var
(
Var
.
set_kind
kind
d
)
in
apply_subst
~
subst
:
subst
t
(* We cannot use the variance annotation of variables to simplify them,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment