summaryrefslogtreecommitdiff
path: root/test/files/scalap
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
parentd18435dcd24bed103e0f2a8fa0019dfe8fd60eea (diff)
downloadscala-6fa82c014c5dd4bc560e0fdd563102f9af7b1ed9.tar.gz
scala-6fa82c014c5dd4bc560e0fdd563102f9af7b1ed9.tar.bz2
scala-6fa82c014c5dd4bc560e0fdd563102f9af7b1ed9.zip
#3060 fixed
Diffstat (limited to 'test/files/scalap')
-rw-r--r--test/files/scalap/typeAnnotations/A.scala9
-rw-r--r--test/files/scalap/typeAnnotations/result.test8
2 files changed, 17 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
diff --git a/test/files/scalap/typeAnnotations/result.test b/test/files/scalap/typeAnnotations/result.test
new file mode 100644
index 0000000000..d48b3a2178
--- /dev/null
+++ b/test/files/scalap/typeAnnotations/result.test
@@ -0,0 +1,8 @@
+abstract class AbsFun[@scala.specialized R] extends java.lang.Object with scala.ScalaObject {
+ def this() = { /* compiled code */ }
+ @scala.specialized
+ val x : scala.Int = { /* compiled code */ }
+ @scala.specialized
+ type T
+ def compose[@scala.specialized A](x : A, y : R) : A = { /* compiled code */ }
+} \ No newline at end of file