summaryrefslogtreecommitdiff
path: root/test/disabled
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@epfl.ch>2009-05-30 07:36:31 +0000
committerLukas Rytz <lukas.rytz@epfl.ch>2009-05-30 07:36:31 +0000
commit390ccacfe0caa4c07af6193dec3e172c0fcd7896 (patch)
tree001ff4a00bd9d8cab651d9bf245bfc795748d829 /test/disabled
parent661f1ba10e5062fd987c4cafe43ad1f0dc3f5491 (diff)
downloadscala-390ccacfe0caa4c07af6193dec3e172c0fcd7896.tar.gz
scala-390ccacfe0caa4c07af6193dec3e172c0fcd7896.tar.bz2
scala-390ccacfe0caa4c07af6193dec3e172c0fcd7896.zip
Named and default arguments
- MethodTypes now have (params: List[Symbol]) - "copy"-methods for case classes - the "copy" object in the compiler is now called "treeCopy"
Diffstat (limited to 'test/disabled')
-rw-r--r--test/disabled/scalap/caseObject/A.scala3
-rw-r--r--test/disabled/scalap/caseObject/result.test8
-rw-r--r--test/disabled/scalap/cbnParam/A.scala1
-rw-r--r--test/disabled/scalap/cbnParam/result.test3
-rw-r--r--test/disabled/scalap/covariantParam/A.scala3
-rw-r--r--test/disabled/scalap/covariantParam/result.test4
-rw-r--r--test/disabled/scalap/implicitParam/A.scala3
-rw-r--r--test/disabled/scalap/implicitParam/result.test4
-rw-r--r--test/disabled/scalap/paramClauses/A.scala3
-rw-r--r--test/disabled/scalap/paramClauses/result.test4
-rw-r--r--test/disabled/scalap/sequenceParam/A.scala1
-rw-r--r--test/disabled/scalap/sequenceParam/result.test3
-rw-r--r--test/disabled/scalap/wildcardType/A.scala1
-rw-r--r--test/disabled/scalap/wildcardType/result.test3
14 files changed, 44 insertions, 0 deletions
diff --git a/test/disabled/scalap/caseObject/A.scala b/test/disabled/scalap/caseObject/A.scala
new file mode 100644
index 0000000000..7c15416841
--- /dev/null
+++ b/test/disabled/scalap/caseObject/A.scala
@@ -0,0 +1,3 @@
+case object CaseObject {
+ def bar = 239
+} \ No newline at end of file
diff --git a/test/disabled/scalap/caseObject/result.test b/test/disabled/scalap/caseObject/result.test
new file mode 100644
index 0000000000..c265c8a529
--- /dev/null
+++ b/test/disabled/scalap/caseObject/result.test
@@ -0,0 +1,8 @@
+final case object CaseObject extends java.lang.Object with scala.ScalaObject with scala.Product {
+ def bar : scala.Int = { /* compiled code */ }
+ final override def toString() : java.lang.String = { /* compiled code */ }
+ override def productPrefix : java.lang.String = { /* compiled code */ }
+ override def productArity : scala.Int = { /* compiled code */ }
+ override def productElement(i : scala.Int) : scala.Any = { /* compiled code */ }
+ protected def readResolve() : java.lang.Object = { /* compiled code */ }
+} \ No newline at end of file
diff --git a/test/disabled/scalap/cbnParam/A.scala b/test/disabled/scalap/cbnParam/A.scala
new file mode 100644
index 0000000000..d804ba6502
--- /dev/null
+++ b/test/disabled/scalap/cbnParam/A.scala
@@ -0,0 +1 @@
+class CbnParam(s: => String) \ No newline at end of file
diff --git a/test/disabled/scalap/cbnParam/result.test b/test/disabled/scalap/cbnParam/result.test
new file mode 100644
index 0000000000..7b18228986
--- /dev/null
+++ b/test/disabled/scalap/cbnParam/result.test
@@ -0,0 +1,3 @@
+class CbnParam extends java.lang.Object with scala.ScalaObject {
+ def this(s : => scala.Predef.String) = { /* compiled code */ }
+} \ No newline at end of file
diff --git a/test/disabled/scalap/covariantParam/A.scala b/test/disabled/scalap/covariantParam/A.scala
new file mode 100644
index 0000000000..19fb8805b7
--- /dev/null
+++ b/test/disabled/scalap/covariantParam/A.scala
@@ -0,0 +1,3 @@
+class CovariantParam[+A] {
+ def foo[A](a: A) = 42
+} \ No newline at end of file
diff --git a/test/disabled/scalap/covariantParam/result.test b/test/disabled/scalap/covariantParam/result.test
new file mode 100644
index 0000000000..e7c4a00bcb
--- /dev/null
+++ b/test/disabled/scalap/covariantParam/result.test
@@ -0,0 +1,4 @@
+class CovariantParam[+A >: scala.Nothing <: scala.Any] extends java.lang.Object with scala.ScalaObject {
+ def this() = { /* compiled code */ }
+ def foo[A >: scala.Nothing <: scala.Any](a : A) : scala.Int = { /* compiled code */ }
+} \ No newline at end of file
diff --git a/test/disabled/scalap/implicitParam/A.scala b/test/disabled/scalap/implicitParam/A.scala
new file mode 100644
index 0000000000..5a5c88bc69
--- /dev/null
+++ b/test/disabled/scalap/implicitParam/A.scala
@@ -0,0 +1,3 @@
+class ImplicitParam {
+ def foo(i: Int)(implicit f: Float, d: Double) = 42
+} \ No newline at end of file
diff --git a/test/disabled/scalap/implicitParam/result.test b/test/disabled/scalap/implicitParam/result.test
new file mode 100644
index 0000000000..4d2f49e803
--- /dev/null
+++ b/test/disabled/scalap/implicitParam/result.test
@@ -0,0 +1,4 @@
+class ImplicitParam extends java.lang.Object with scala.ScalaObject {
+ def this() = { /* compiled code */ }
+ def foo(i : scala.Int)(implicit f : scala.Float, d : scala.Double) : scala.Int = { /* compiled code */ }
+} \ No newline at end of file
diff --git a/test/disabled/scalap/paramClauses/A.scala b/test/disabled/scalap/paramClauses/A.scala
new file mode 100644
index 0000000000..bcc76f50e3
--- /dev/null
+++ b/test/disabled/scalap/paramClauses/A.scala
@@ -0,0 +1,3 @@
+class ParamClauses {
+ def foo(i: Int)(s: String)(t: Double) = 239
+} \ No newline at end of file
diff --git a/test/disabled/scalap/paramClauses/result.test b/test/disabled/scalap/paramClauses/result.test
new file mode 100644
index 0000000000..4a3138d3c9
--- /dev/null
+++ b/test/disabled/scalap/paramClauses/result.test
@@ -0,0 +1,4 @@
+class ParamClauses extends java.lang.Object with scala.ScalaObject {
+ def this() = { /* compiled code */ }
+ def foo(i : scala.Int)(s : scala.Predef.String)(d : scala.Double) : scala.Int = { /* compiled code */ }
+} \ No newline at end of file
diff --git a/test/disabled/scalap/sequenceParam/A.scala b/test/disabled/scalap/sequenceParam/A.scala
new file mode 100644
index 0000000000..98874fafb1
--- /dev/null
+++ b/test/disabled/scalap/sequenceParam/A.scala
@@ -0,0 +1 @@
+class SequenceParam(s: String, i: Int*) \ No newline at end of file
diff --git a/test/disabled/scalap/sequenceParam/result.test b/test/disabled/scalap/sequenceParam/result.test
new file mode 100644
index 0000000000..a4769c81df
--- /dev/null
+++ b/test/disabled/scalap/sequenceParam/result.test
@@ -0,0 +1,3 @@
+class SequenceParam extends java.lang.Object with scala.ScalaObject {
+ def this(s : scala.Predef.String, s : scala.Int*) = { /* compiled code */ }
+} \ No newline at end of file
diff --git a/test/disabled/scalap/wildcardType/A.scala b/test/disabled/scalap/wildcardType/A.scala
new file mode 100644
index 0000000000..d99841cb36
--- /dev/null
+++ b/test/disabled/scalap/wildcardType/A.scala
@@ -0,0 +1 @@
+class WildcardType(f: Int => _) \ No newline at end of file
diff --git a/test/disabled/scalap/wildcardType/result.test b/test/disabled/scalap/wildcardType/result.test
new file mode 100644
index 0000000000..78a24ef22a
--- /dev/null
+++ b/test/disabled/scalap/wildcardType/result.test
@@ -0,0 +1,3 @@
+class WildcardType extends java.lang.Object with scala.ScalaObject {
+ def this(f : scala.Function1[scala.Int, _]) = { /* compiled code */ }
+} \ No newline at end of file