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
d7b41a1a
Commit
d7b41a1a
authored
Dec 01, 2014
by
Kim Nguyễn
Browse files
Remove unused exception handling code.
parent
2b0f24c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
typing/typer.ml
View file @
d7b41a1a
...
...
@@ -966,10 +966,8 @@ and type_check' loc env ed constr precise = match ed with
in
let
t
=
(* try Types.Arrow.check_strenghten a.fun_typ constr *)
try
begin
if
Types
.
is_squaresubtype
env
.
delta
a
.
fun_typ
constr
then
a
.
fun_typ
else
raise
Not_found
end
with
Not_found
->
if
Types
.
is_squaresubtype
env
.
delta
a
.
fun_typ
constr
then
a
.
fun_typ
else
should_have
loc
constr
"but the interface of the abstraction is not compatible"
in
...
...
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