diff options
author | Hubert Plociniczak <hubert.plociniczak@gmail.com> | 2012-02-18 01:13:37 +0100 |
---|---|---|
committer | Hubert Plociniczak <hubert.plociniczak@gmail.com> | 2012-02-18 01:13:37 +0100 |
commit | b433bdba5aa7d8947032cc15454666c8a4a30115 (patch) | |
tree | a825525c2c98ce106260ac25ee5954210ab8b4cc /test/files | |
parent | 91148376049a152edec12348ff9b7e9e93e6ebe1 (diff) | |
download | scala-b433bdba5aa7d8947032cc15454666c8a4a30115.tar.gz scala-b433bdba5aa7d8947032cc15454666c8a4a30115.tar.bz2 scala-b433bdba5aa7d8947032cc15454666c8a4a30115.zip |
Closes #5497.
Chain contexts by sharing the error buffer, unless you explicitly create a silent context. Review by @odersky
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/neg/t5493.check | 4 | ||||
-rw-r--r-- | test/files/neg/t5493.scala | 3 | ||||
-rw-r--r-- | test/files/neg/t5497.check | 4 | ||||
-rw-r--r-- | test/files/neg/t5497.scala | 5 |
4 files changed, 16 insertions, 0 deletions
diff --git a/test/files/neg/t5493.check b/test/files/neg/t5493.check new file mode 100644 index 0000000000..78b1536bc7 --- /dev/null +++ b/test/files/neg/t5493.check @@ -0,0 +1,4 @@ +t5493.scala:2: error: not found: value iDontExist + def meh(xs: Any): Any = xs :: iDontExist :: Nil + ^ +one error found diff --git a/test/files/neg/t5493.scala b/test/files/neg/t5493.scala new file mode 100644 index 0000000000..459cf53bbd --- /dev/null +++ b/test/files/neg/t5493.scala @@ -0,0 +1,3 @@ +object Test { + def meh(xs: Any): Any = xs :: iDontExist :: Nil +} diff --git a/test/files/neg/t5497.check b/test/files/neg/t5497.check new file mode 100644 index 0000000000..fef6d38da0 --- /dev/null +++ b/test/files/neg/t5497.check @@ -0,0 +1,4 @@ +t5497.scala:3: error: not found: value sq + case other => println(null.asInstanceOf[sq.Filter].tableName) + ^ +one error found diff --git a/test/files/neg/t5497.scala b/test/files/neg/t5497.scala new file mode 100644 index 0000000000..40d47de12d --- /dev/null +++ b/test/files/neg/t5497.scala @@ -0,0 +1,5 @@ +object TestQueryable extends App{ + ({ + case other => println(null.asInstanceOf[sq.Filter].tableName) + } : Any => Unit)(null) +} |