|
Scala example source code file (bug159.scala)
The Scala bug159.scala source code
object foo {
// the problem seems to appear only
// if "val _" is in the body of a case
def cooked(ckd: StringBuilder) {
'a' match {
case '-' =>
val _ = ckd.append( '_' );
case 'v' =>
val _ = ckd.append( '_' );
}
}
}
object foo1 {
def f() {
1 match {
case 2 => val _ = 1;
case 3 => val _ = 2;
case 4 => val _ = 2;
}
}
}
Other Scala examples (source code examples)Here is a short list of links related to this Scala bug159.scala source code file: |
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.