summaryrefslogtreecommitdiff
path: root/test/files/run/classof.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/classof.scala')
-rwxr-xr-xtest/files/run/classof.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/run/classof.scala b/test/files/run/classof.scala
new file mode 100755
index 0000000000..5c920d797f
--- /dev/null
+++ b/test/files/run/classof.scala
@@ -0,0 +1,8 @@
+class SomeClass
+
+object Test {
+ def main(args: Array[String]): Unit = {
+ val cls: Predef.Class[SomeClass] = classOf[SomeClass]
+ Console.println(cls.getName())
+ }
+}