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
675bf1f4
Commit
675bf1f4
authored
Nov 06, 2015
by
Kim Nguyễn
Browse files
Correctly refresh the type of the variables of t in a Forget(e,t) expression to
avoid a clash with variables in e.
parent
f0ab9a87
Changes
1
Show whitespace changes
Inline
Side-by-side
typing/typer.ml
View file @
675bf1f4
...
...
@@ -1211,7 +1211,7 @@ let rec type_check env e constr precise =
and
type_check'
loc
env
ed
constr
precise
=
match
ed
with
|
Forget
(
e
,
t
)
->
let
t
=
Types
.
descr
t
in
let
t
=
Types
.
Subst
.
freshen
env
.
delta
(
Types
.
descr
t
)
in
let
te
=
type_check
env
e
Types
.
any
true
in
let
delta
=
Var
.
Set
.
cup
(
Types
.
all_vars
t
)
env
.
delta
in
if
Type_tallying
.
is_squaresubtype
delta
te
t
then
...
...
Kim Nguyễn
@kn
mentioned in issue
#10 (closed)
·
Mar 22, 2016
mentioned in issue
#10 (closed)
mentioned in issue #10
Toggle commit list
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