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
Giuseppe Castagna
occurrence-typing
Commits
6f56197c
Commit
6f56197c
authored
Jul 11, 2019
by
Giuseppe Castagna
Browse files
typo
parent
afa1169e
Changes
1
Hide whitespace changes
Inline
Side-by-side
practical.tex
View file @
6f56197c
...
...
@@ -183,7 +183,7 @@ application. Here by iterating a second time, the algorithm deduces
that
{
\tt
x
}
has type
$
\Empty
$
(i.e.,
$
\textsf
{
Empty
}$
), that is that the first branch can never
be selected (and our implementation warns the user accordingly). In hindsight, the only way for a well-typed overloaded function to have
type
$
(
\Int
{
\to
}
\Int
)
\land
(
\Any
{
\to
}
\Bool
)
$
is to diverge when the
argument is of type
\Int
: since this intersection type
s
states that
argument is of type
\Int
: since this intersection type states that
whenever the input is
\Int
,
{
\em
both
\/
}
branches can be selected,
yielding a result that is at the same time an integer and a Boolean.
This is precisely reflected by the case
$
\Int\to\Empty
$
in the result.
...
...
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