diff options
author | Martin Odersky <odersky@gmail.com> | 2007-09-10 13:12:27 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2007-09-10 13:12:27 +0000 |
commit | b907c8eb599b53d83b2494e63a928182ec97f2eb (patch) | |
tree | 525ad28a003906f9c493595f84e5ec4a977cfc88 /test/files/run | |
parent | c9e92bfc89083227aa18f88b07688afd625970af (diff) | |
download | scala-b907c8eb599b53d83b2494e63a928182ec97f2eb.tar.gz scala-b907c8eb599b53d83b2494e63a928182ec97f2eb.tar.bz2 scala-b907c8eb599b53d83b2494e63a928182ec97f2eb.zip |
1. added var pattern = expr syntax
2. better error messages in two situations
3. fixed tickets 5, 33, 42
4. changed check files of 3 failing tests
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/t0042.check | 1 | ||||
-rwxr-xr-x | test/files/run/t0042.scala | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/test/files/run/t0042.check b/test/files/run/t0042.check new file mode 100644 index 0000000000..aeb2d5e239 --- /dev/null +++ b/test/files/run/t0042.check @@ -0,0 +1 @@ +Some(1) diff --git a/test/files/run/t0042.scala b/test/files/run/t0042.scala new file mode 100755 index 0000000000..53314f2885 --- /dev/null +++ b/test/files/run/t0042.scala @@ -0,0 +1,9 @@ +object Test extends Application { + def getClause[T](clauses: List[T]): Option[T] = { + for (c <- clauses) { + return Some(c) + } + return None + } + println(getClause(List(1, 2, 3))) +} |