diff options
-rw-r--r-- | tests/run/classof.check | 5 | ||||
-rw-r--r-- | tests/run/classof.scala | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/tests/run/classof.check b/tests/run/classof.check index 9476c014d..e42026e7a 100644 --- a/tests/run/classof.check +++ b/tests/run/classof.check @@ -8,16 +8,19 @@ int long float double -Class types + +Class types: class SomeClass class ValueClass class scala.collection.immutable.List class scala.Tuple2 + Arrays: class [Lscala.runtime.BoxedUnit; class [I class [D class [Lscala.collection.immutable.List; + Functions: interface scala.Function2 interface scala.Function1 diff --git a/tests/run/classof.scala b/tests/run/classof.scala index bdbcef4a1..734838b30 100644 --- a/tests/run/classof.scala +++ b/tests/run/classof.scala @@ -18,19 +18,19 @@ object Test { println(classOf[Float]) println(classOf[Double]) - println("Class types") + println("\nClass types:") println(classOf[SomeClass]) println(classOf[ValueClass]) println(classOf[List[Array[Float]]]) println(classOf[(String, Map[Int, String])]) - println("Arrays:") + println("\nArrays:") println(classOf[Array[Unit]]) println(classOf[Array[Int]]) println(classOf[Array[Double]]) println(classOf[Array[List[String]]]) - println("Functions:") + println("\nFunctions:") println(classOf[(Int, Int) => Unit]) println(classOf[Int => Boolean]) } |