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
c15a86b3
Commit
c15a86b3
authored
Nov 06, 2015
by
Giuseppe Castagna
Browse files
Merge branch 'sources-refactoring' of
https://git.cduce.org/cduce
into sources-refactoring
parents
340acaa1
239dfe25
Changes
1
Hide whitespace changes
Inline
Side-by-side
typing/typer.ml
View file @
c15a86b3
...
...
@@ -1212,10 +1212,13 @@ 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
ignore
(
type_check
env
e
t
false
);
(
ed
,
verify
loc
t
constr
)
let
t
=
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
(
ed
,
verify
loc
t
constr
)
else
raise_loc
loc
(
Constraint
(
t
,
te
))
|
Subst
(
e
,
sl
)
->
let
t
=
type_check
env
e
constr
precise
in
(
ed
,
verify
loc
t
constr
)
...
...
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