From 469dc5ebf005e980e26f6122093fd550c15ebb98 Mon Sep 17 00:00:00 2001 From: Lukas Rytz Date: Wed, 31 Mar 2010 14:00:09 +0000 Subject: close #3222. review by community --- test/files/neg/t3222.check | 13 +++++++++++++ test/files/neg/t3222.scala | 9 +++++++++ 2 files changed, 22 insertions(+) create mode 100644 test/files/neg/t3222.check create mode 100644 test/files/neg/t3222.scala (limited to 'test') diff --git a/test/files/neg/t3222.check b/test/files/neg/t3222.check new file mode 100644 index 0000000000..6170827cc9 --- /dev/null +++ b/test/files/neg/t3222.check @@ -0,0 +1,13 @@ +t3222.scala:1: error: not found: type B +@throws(classOf[B]) + ^ +t3222.scala:4: error: not found: type D + def foo(@throws(classOf[D]) x: Int) {} + ^ +t3222.scala:3: error: not found: type C + @throws(classOf[C]) + ^ +t3222.scala:6: error: not found: type E + @throws(classOf[E]) + ^ +four errors found diff --git a/test/files/neg/t3222.scala b/test/files/neg/t3222.scala new file mode 100644 index 0000000000..448292e8a7 --- /dev/null +++ b/test/files/neg/t3222.scala @@ -0,0 +1,9 @@ +@throws(classOf[B]) +class ExceptionTest { + @throws(classOf[C]) + def foo(@throws(classOf[D]) x: Int) {} + + @throws(classOf[E]) + type t = String +} + -- cgit v1.2.3