diff options
author | Paul Phillips <paulp@improving.org> | 2009-02-10 17:51:32 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-02-10 17:51:32 +0000 |
commit | 8d017c0f1e3478f2736a8df624492b73190b0976 (patch) | |
tree | 53576dda6521a9c96573f983e00dcd4ab4977adc /test/files | |
parent | 7681434a9278f50b673880e9a2ede4c1d57a679d (diff) | |
download | scala-8d017c0f1e3478f2736a8df624492b73190b0976.tar.gz scala-8d017c0f1e3478f2736a8df624492b73190b0976.tar.bz2 scala-8d017c0f1e3478f2736a8df624492b73190b0976.zip |
Removes underscore from the list of characters ...
Removes underscore from the list of characters used during semicolon
inference which it believes cannot start a statement on a new line,
fixing bug #756; adds 1 test case, updates 1.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/neg/bug1181.check | 2 | ||||
-rw-r--r-- | test/files/pos/bug756.scala | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/test/files/neg/bug1181.check b/test/files/neg/bug1181.check index 0baf975f9b..38045eda87 100644 --- a/test/files/neg/bug1181.check +++ b/test/files/neg/bug1181.check @@ -1,4 +1,4 @@ -bug1181.scala:9: error: not a legal formal parameter +bug1181.scala:9: error: missing parameter type _ => buildMap(map.update(keyList.head, valueList.head), keyList.tail, valueList.tail) ^ one error found diff --git a/test/files/pos/bug756.scala b/test/files/pos/bug756.scala new file mode 100644 index 0000000000..09735695f8 --- /dev/null +++ b/test/files/pos/bug756.scala @@ -0,0 +1,6 @@ +object test { + for { + n <- Some(42) + _ <- Some(24) + } yield n +}
\ No newline at end of file |