summaryrefslogtreecommitdiff
path: root/test/files/scalap/typeAnnotations/A.scala
diff options
context:
space:
mode:
authorilyas <ilyas@epfl.ch>2010-03-01 14:17:44 +0000
committerilyas <ilyas@epfl.ch>2010-03-01 14:17:44 +0000
commit6fa82c014c5dd4bc560e0fdd563102f9af7b1ed9 (patch)
tree235b9e5aa3b9e158a269f18cf9f1848b605fa3b7 /test/files/scalap/typeAnnotations/A.scala
parentd18435dcd24bed103e0f2a8fa0019dfe8fd60eea (diff)
downloadscala-6fa82c014c5dd4bc560e0fdd563102f9af7b1ed9.tar.gz
scala-6fa82c014c5dd4bc560e0fdd563102f9af7b1ed9.tar.bz2
scala-6fa82c014c5dd4bc560e0fdd563102f9af7b1ed9.zip
#3060 fixed
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