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
2b3c3aab
Commit
2b3c3aab
authored
Oct 05, 2007
by
Pietro Abate
Browse files
[r2003-09-23 12:09:47 by cvscast] Empty log message
Original author: cvscast Date: 2003-09-23 12:10:41+00:00
parent
6b49354f
Changes
1
Hide whitespace changes
Inline
Side-by-side
web/tutorial/errors.xml
View file @
2b3c3aab
...
...
@@ -93,7 +93,7 @@ elements giving priority to email addresses over telephone numbers. Even if
there is a typo in the pattern of the first branch, the function is well
typed. However because of the typo the first branch will never be selected and
emails never printed. The CDuce type-checker however recognizes that this branch
will never be selected
a
s
<code>
Person
&
<
_>[_ _
will never be selected s
ince
<code>
Person
&
<
_>[_ _
<
emal>s]
</code>
=
<code>
Empty
</code>
and it prevents the programmer by issuing the following warning message:
</p>
<p>
...
...
@@ -102,9 +102,9 @@ Warning at chars 144-167:<br/>
<i>
|
<b
style=
"color:red"
>
<
_
>
[_ _
<
emal
>
s] -
>
[s]
</b></i><br/>
This branch is not used
<br/>
<i>
fun main_contacts(x : [Person*]):[String*] =
<br/>
transform x with
<br/>
|
<
_
>
[_ _
<
emal
>
s] -
>
[s]
<br/>
|
<
_
>
[_
<
tel
>
s ] -
>
[s]
</i>
  
transform x with
<br/>
     
|
<
_
>
[_ _
<
emal
>
s] -
>
[s]
<br/>
     
|
<
_
>
[_
<
tel
>
s ] -
>
[s]
</i>
<br/>
- : [ Person* ] -
>
[ String* ] =
<
fun
>
<br/>
<br/>
...
...
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