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
389da8ac
Commit
389da8ac
authored
Jul 10, 2007
by
Pietro Abate
Browse files
[r2003-05-16 13:32:07 by cvscast] Bug fix in type_check_pair
Original author: cvscast Date: 2003-05-16 13:32:07+00:00
parent
697bedcd
Changes
1
Show whitespace changes
Inline
Side-by-side
typing/typer.ml
View file @
389da8ac
...
...
@@ -809,7 +809,7 @@ and type_check' loc env e constr precise = match e with
t
and
type_check_pair
?
(
kind
=
`Normal
)
loc
env
e1
e2
constr
precise
=
let
rects
=
Types
.
Product
.
get
~
kind
constr
in
let
rects
=
Types
.
Product
.
normal
~
kind
constr
in
if
Types
.
Product
.
is_empty
rects
then
(
match
kind
with
|
`Normal
->
raise_loc
loc
(
ShouldHave
(
constr
,
"but it is a pair."
))
...
...
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