summaryrefslogtreecommitdiff
path: root/test/pending/neg/scopes.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-10-02 22:43:10 +0000
committerPaul Phillips <paulp@improving.org>2010-10-02 22:43:10 +0000
commit06aa1c9eff49d5190e82a72a876d7b3bd706d6d4 (patch)
tree4c38f2559c839ba297060a48023d69550c5d107e /test/pending/neg/scopes.scala
parent256aca612204f1316e5281af6d10a14300d58ad1 (diff)
downloadscala-06aa1c9eff49d5190e82a72a876d7b3bd706d6d4.tar.gz
scala-06aa1c9eff49d5190e82a72a876d7b3bd706d6d4.tar.bz2
scala-06aa1c9eff49d5190e82a72a876d7b3bd706d6d4.zip
Sorting through the tests in pending from oldes...
Sorting through the tests in pending from oldest to newest because I don't believe in having useless appendages. The verdict on the oldest fifteen tests is: 15/15 are fixed. Many were already in files under a different name. I moved a few and deleted the rest. Fun fact of the day: apparently there was a time when to call into java varargs with no arguments you might have to write something like: getClass().getMethod("getCount", Array[java.lang.Class[T] forSome { type T }]()) On this basis I retract any complaints I've ever had about anything. There is one question mark outlined in pos/testCoercionThis.scala, a file formerly called pos/moors.scala and therefore... review by moors.
Diffstat (limited to 'test/pending/neg/scopes.scala')
-rw-r--r--test/pending/neg/scopes.scala20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/pending/neg/scopes.scala b/test/pending/neg/scopes.scala
index e38a0a3d2e..fd31ff5f72 100644
--- a/test/pending/neg/scopes.scala
+++ b/test/pending/neg/scopes.scala
@@ -1,18 +1,18 @@
-case class test0(x: int, x: float)
+case class test0(x: Int, x: Float)
object test1 {
- type t = int
- type t = float
- val x: int = 0
- val x: float = .0f;
+ type t = Int
+ type t = Float
+ val x: Int = 0
+ val x: Float = .0f;
{
- val y: int = 0
- val y: float = .0f
+ val y: Int = 0
+ val y: Float = .0f
()
}
- def f1(x: int, x: float) = x
- def f2(x: int)(y: int, y: float) = x + y
- val closure = (x: int, x: float) => x
+ def f1(x: Int, x: Float) = x
+ def f2(x: Int)(y: Int, y: Float) = x + y
+ val closure = (x: Int, x: Float) => x
List() match {
case x::x => x
case Nil => Nil