Aladdin - Scala Bugtracking
[#956] project: documentation priority: low category: bug
submitter assigned to status date submitted
Nikolay Martin fixed 2007-02-18 11:07:11.0
subject [contrib #341] Scala by Example
code
page 23, chapter 5.2: the sum is not well defined. in last line, there should be '&' before sumF, or sum should have explicit output type. also def sumInts and the rest should be without '&'.
--
page 65 and 66, chapter 9.2: 'this' is missing from match expressions.

what happened
what expected
[back to overview]
Changes of this bug report
Nikolay  edited on  2007-02-18 11:09:42.0
I added the missing 'this' in from of match (the second part of the contribution). DON'T GO LOOKING FOR THEM. But left the first part for Martin because the text WRT to '&' will have to be changed appropriately.
Martin  edited on  2007-02-19 17:57:58.0
I added a result type, so no need for &