Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion tests/run/classof.check
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions tests/run/classof.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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:")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You forgot to add a corresponding new line before Functions: in the check file

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bang! Thanks!

println(classOf[(Int, Int) => Unit])
println(classOf[Int => Boolean])
}
Expand Down