diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2015-06-17 15:26:10 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2015-06-17 15:26:10 -0700 |
commit | 39afd1393da3b66ec9a46f53f8a726319a1089d0 (patch) | |
tree | 14a3e167f9776e56aafb169ae31a49378b1431c5 /test/files | |
parent | f0388d29881ef19035247aed20cf6734fabe19fc (diff) | |
parent | f8fbd5dbf031a04343c795cfa99cf768add65f05 (diff) | |
download | scala-39afd1393da3b66ec9a46f53f8a726319a1089d0.tar.gz scala-39afd1393da3b66ec9a46f53f8a726319a1089d0.tar.bz2 scala-39afd1393da3b66ec9a46f53f8a726319a1089d0.zip |
Merge pull request #4560 from adriaanm/t9356
SI-9356 more careful assertion in back-end
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/pos/t9356/Foo_2.scala | 6 | ||||
-rw-r--r-- | test/files/pos/t9356/MyAnnotation.java | 12 | ||||
-rw-r--r-- | test/files/pos/t9356/Test_3.scala | 3 |
3 files changed, 21 insertions, 0 deletions
diff --git a/test/files/pos/t9356/Foo_2.scala b/test/files/pos/t9356/Foo_2.scala new file mode 100644 index 0000000000..ab7bb44d0e --- /dev/null +++ b/test/files/pos/t9356/Foo_2.scala @@ -0,0 +1,6 @@ +class C + +trait Foo { + @annot.MyAnnotation(cls = classOf[C]) + def function: Any = ??? +} diff --git a/test/files/pos/t9356/MyAnnotation.java b/test/files/pos/t9356/MyAnnotation.java new file mode 100644 index 0000000000..b6c00e7356 --- /dev/null +++ b/test/files/pos/t9356/MyAnnotation.java @@ -0,0 +1,12 @@ +package annot; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Target(ElementType.METHOD) +@Retention(RetentionPolicy.RUNTIME) +public @interface MyAnnotation { + Class<?> cls(); +} diff --git a/test/files/pos/t9356/Test_3.scala b/test/files/pos/t9356/Test_3.scala new file mode 100644 index 0000000000..fa1b76c9e1 --- /dev/null +++ b/test/files/pos/t9356/Test_3.scala @@ -0,0 +1,3 @@ +class Foo1 extends Foo + +class Foo2 extends Foo
\ No newline at end of file |