summaryrefslogtreecommitdiff
path: root/test/files/neg/t7251.check
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2013-03-15 11:46:19 -0700
committerPaul Phillips <paulp@improving.org>2013-03-16 05:57:46 -0700
commit395e90a786874ebe795e656f532b50110c8c1a98 (patch)
treecc05f8e111dbe2238ac7aea815e18d7610791c17 /test/files/neg/t7251.check
parentb7b4f877326acd6a8a24ff60fa1638cc18143c45 (diff)
downloadscala-395e90a786874ebe795e656f532b50110c8c1a98.tar.gz
scala-395e90a786874ebe795e656f532b50110c8c1a98.tar.bz2
scala-395e90a786874ebe795e656f532b50110c8c1a98.zip
SI-7251, compiler crash with $.
We don't need to assert our way out of tight spots, we can issue an error. Or so I once thought. It turns out lots of assertions have been disappearing before being heard thanks to "case t: Throwable". Under such conditions, a failed assertion is a no-op, but an error is an error. The crash associated with SI-7251 is best avoided by removing the assertion, which allows an error to be issued in the normal course of events. In the course of trying to figure out the above, I cleaned up ClassfileParser somewhat.
Diffstat (limited to 'test/files/neg/t7251.check')
-rw-r--r--test/files/neg/t7251.check4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/neg/t7251.check b/test/files/neg/t7251.check
new file mode 100644
index 0000000000..8df8984d63
--- /dev/null
+++ b/test/files/neg/t7251.check
@@ -0,0 +1,4 @@
+B_2.scala:5: error: object s.Outer$Triple$ is not a value
+ println( s.Outer$Triple$ )
+ ^
+one error found