summaryrefslogtreecommitdiff
path: root/test/files/run/t1167.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t1167.scala')
-rw-r--r--test/files/run/t1167.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/run/t1167.scala b/test/files/run/t1167.scala
index 25e42ffd4d..7386d09a6c 100644
--- a/test/files/run/t1167.scala
+++ b/test/files/run/t1167.scala
@@ -8,6 +8,13 @@ trait Test1 {
}
}
+/* getName
+ * Returns the binary name of the class if this class object represents a
+ * reference type that is not an array type.
+ * getSimpleName
+ * Returns the simple name of the underlying class as given in the source
+ * code. Returns an empty string if the underlying class is anonymous.
+ */
abstract class Foo {
override def toString = getClass.getSimpleName