summaryrefslogtreecommitdiff
path: root/test/files/scalap/typeAnnotations/A.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/scalap/typeAnnotations/A.scala')
-rw-r--r--test/files/scalap/typeAnnotations/A.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/scalap/typeAnnotations/A.scala b/test/files/scalap/typeAnnotations/A.scala
new file mode 100644
index 0000000000..582746764e
--- /dev/null
+++ b/test/files/scalap/typeAnnotations/A.scala
@@ -0,0 +1,9 @@
+abstract class AbsFun[@specialized R] {
+ @specialized val x = 10
+ @specialized type T
+
+ def compose[@specialized A](x: A, y: R): A = {
+ val y: A = x
+ x
+ }
+} \ No newline at end of file