diff options
author | Paul Phillips <paulp@improving.org> | 2010-02-27 23:49:51 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-02-27 23:49:51 +0000 |
commit | 7476ed45af6cf90f8c0e03f6ed429dcb436baf87 (patch) | |
tree | 4d89f0d765ecbc8851b10eee6e1b6d0662a16466 /test/files/neg | |
parent | 646c478b3aeb05079c915c217272bcb64dc324fc (diff) | |
download | scala-7476ed45af6cf90f8c0e03f6ed429dcb436baf87.tar.gz scala-7476ed45af6cf90f8c0e03f6ed429dcb436baf87.tar.bz2 scala-7476ed45af6cf90f8c0e03f6ed429dcb436baf87.zip |
Expanded the check from #1392 to enclose #3123 ...
Expanded the check from #1392 to enclose #3123 as well so that "case Int
=> " doesn't crash. Closes #3123. Review by odersky.
Diffstat (limited to 'test/files/neg')
-rw-r--r-- | test/files/neg/bug3123.check | 4 | ||||
-rw-r--r-- | test/files/neg/bug3123.scala | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/test/files/neg/bug3123.check b/test/files/neg/bug3123.check new file mode 100644 index 0000000000..8f5319c9a3 --- /dev/null +++ b/test/files/neg/bug3123.check @@ -0,0 +1,4 @@ +bug3123.scala:3: error: object Int is not a value + t match { case Int => true } + ^ +one error found diff --git a/test/files/neg/bug3123.scala b/test/files/neg/bug3123.scala new file mode 100644 index 0000000000..667a1da918 --- /dev/null +++ b/test/files/neg/bug3123.scala @@ -0,0 +1,5 @@ +object NotAValue { + def test[T](t : T) { + t match { case Int => true } + } +} |