aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/i866.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-10-26 09:47:21 +0100
committerMartin Odersky <odersky@gmail.com>2015-10-26 09:47:21 +0100
commit065a0026924f722e9844c8e314180bb4cebca236 (patch)
tree5b3beb65682e12c729c68ecd2b61b9a4d16bc2f8 /tests/neg/i866.scala
parentd4f30d1a268a51ee74c98f6ae0f45136274536af (diff)
downloaddotty-065a0026924f722e9844c8e314180bb4cebca236.tar.gz
dotty-065a0026924f722e9844c8e314180bb4cebca236.tar.bz2
dotty-065a0026924f722e9844c8e314180bb4cebca236.zip
Don't count suppressed errors
If an error message was supressed to count it in the total.
Diffstat (limited to 'tests/neg/i866.scala')
-rw-r--r--tests/neg/i866.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/neg/i866.scala b/tests/neg/i866.scala
new file mode 100644
index 000000000..2cdc99ede
--- /dev/null
+++ b/tests/neg/i866.scala
@@ -0,0 +1,9 @@
+object Test {
+ def x: Int = "" // error
+}
+import nonexistent._ // error; this one will swallow all errors below.
+object Foo {
+ def bar(implicit x: NonExistent) = ???
+ val baz = bar
+}
+