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
e54a9aee
Commit
e54a9aee
authored
Jul 10, 2007
by
Pietro Abate
Browse files
[r2006-04-24 17:00:39 by afrisch] New subtyping algo
Original author: afrisch Date: 2006-04-24 17:00:39+00:00
parent
d7f5453a
Changes
1
Hide whitespace changes
Inline
Side-by-side
driver/cduce.ml
View file @
e54a9aee
...
@@ -107,8 +107,8 @@ let rec print_exn ppf = function
...
@@ -107,8 +107,8 @@ let rec print_exn ppf = function
Format
.
fprintf
ppf
"but its inferred type is:@.%a@."
Format
.
fprintf
ppf
"but its inferred type is:@.%a@."
print_norm
s
;
print_norm
s
;
Format
.
fprintf
ppf
"which is not a subtype, as shown by the sample:@.%a@."
Format
.
fprintf
ppf
"which is not a subtype, as shown by the sample:@.%a@."
(*
print_sample (Sample.get (Types.diff s t))
*)
print_sample
(
Sample
.
get
(
Types
.
diff
s
t
))
Types
.
Witness
.
print_witness
(
Types
.
witness
(
Types
.
diff
s
t
))
(*
Types.Witness.print_witness (Types.witness (Types.diff s t))
*)
|
Typer
.
NonExhaustive
t
->
|
Typer
.
NonExhaustive
t
->
Format
.
fprintf
ppf
"This pattern matching is not exhaustive@."
;
Format
.
fprintf
ppf
"This pattern matching is not exhaustive@."
;
Format
.
fprintf
ppf
"Residual type:@.%a@."
Format
.
fprintf
ppf
"Residual type:@.%a@."
...
...
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