diff options
author | Paul Phillips <paulp@improving.org> | 2013-03-15 11:46:19 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2013-03-16 05:57:46 -0700 |
commit | 395e90a786874ebe795e656f532b50110c8c1a98 (patch) | |
tree | cc05f8e111dbe2238ac7aea815e18d7610791c17 /test/files/neg/t7251/B_2.scala | |
parent | b7b4f877326acd6a8a24ff60fa1638cc18143c45 (diff) | |
download | scala-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/B_2.scala')
-rw-r--r-- | test/files/neg/t7251/B_2.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/neg/t7251/B_2.scala b/test/files/neg/t7251/B_2.scala new file mode 100644 index 0000000000..eb59b30902 --- /dev/null +++ b/test/files/neg/t7251/B_2.scala @@ -0,0 +1,7 @@ +package s + +object Test { + def main(args: Array[String]): Unit = { + println( s.Outer$Triple$ ) + } +} |