summaryrefslogtreecommitdiff
path: root/test/files/pos/t3429
diff options
context:
space:
mode:
authorAntonio Cunei <antonio.cunei@epfl.ch>2010-05-26 14:14:12 +0000
committerAntonio Cunei <antonio.cunei@epfl.ch>2010-05-26 14:14:12 +0000
commite239d7fa5b9de5edffb06022c4cc5a9c105a51d3 (patch)
tree5aac86ae523db164174e39c900a5d2c5ad094075 /test/files/pos/t3429
parentc932ec58f9e6fc90c9497bb4cbfb09f2b398e7ea (diff)
downloadscala-e239d7fa5b9de5edffb06022c4cc5a9c105a51d3.tar.gz
scala-e239d7fa5b9de5edffb06022c4cc5a9c105a51d3.tar.bz2
scala-e239d7fa5b9de5edffb06022c4cc5a9c105a51d3.zip
svnmerge + tags
Diffstat (limited to 'test/files/pos/t3429')
-rw-r--r--test/files/pos/t3429/A.scala12
-rw-r--r--test/files/pos/t3429/Test.java3
2 files changed, 15 insertions, 0 deletions
diff --git a/test/files/pos/t3429/A.scala b/test/files/pos/t3429/A.scala
new file mode 100644
index 0000000000..80785db51d
--- /dev/null
+++ b/test/files/pos/t3429/A.scala
@@ -0,0 +1,12 @@
+class A {
+ @Test(exc = classOf[Exception])
+ def myTestMethod = 0
+}
+// rytz@chara:~/scala/trunk/sandbox$ javac Test.java
+// rytz@chara:~/scala/trunk/sandbox$ ../build/pack/bin/scalac A.scala
+// A.scala:2: error: type mismatch;
+// found : java.lang.Class[Exception](classOf[java.lang.Exception])
+// required: java.lang.Class
+// @Test(exc = classOf[Exception])
+// ^
+// one error found \ No newline at end of file
diff --git a/test/files/pos/t3429/Test.java b/test/files/pos/t3429/Test.java
new file mode 100644
index 0000000000..e7c57c90c5
--- /dev/null
+++ b/test/files/pos/t3429/Test.java
@@ -0,0 +1,3 @@
+public @interface Test {
+ public Class exc() default Exception.class;
+} \ No newline at end of file