summaryrefslogtreecommitdiff
path: root/test/files/run/classof.scala
diff options
context:
space:
mode:
authorLex Spoon <lex@lexspoon.org>2006-05-09 09:20:26 +0000
committerLex Spoon <lex@lexspoon.org>2006-05-09 09:20:26 +0000
commitf20335d1907a7c71f37f627753ffdf9200240e04 (patch)
treec70f6229497eed4b40a3009f120b36770a01a376 /test/files/run/classof.scala
parentdcb432cd6ebf278ec86dbe28cd07ba9803d2f787 (diff)
downloadscala-f20335d1907a7c71f37f627753ffdf9200240e04.tar.gz
scala-f20335d1907a7c71f37f627753ffdf9200240e04.tar.bz2
scala-f20335d1907a7c71f37f627753ffdf9200240e04.zip
Diffstat (limited to 'test/files/run/classof.scala')
-rw-r--r--test/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 100644
index 0000000000..c2c76b344e
--- /dev/null
+++ b/test/files/run/classof.scala
@@ -0,0 +1,8 @@
+class SomeClass
+
+object Test {
+ def main(args: Array[String]): Unit = {
+ val cls:Class = classOf[SomeClass]
+ Console.println(cls.getName)
+ }
+}