summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPhilipp Haller <hallerp@gmail.com>2009-06-22 14:43:26 +0000
committerPhilipp Haller <hallerp@gmail.com>2009-06-22 14:43:26 +0000
commit2ebff1417c9cfd39251a6a95a72c17af24b813c1 (patch)
treebd5f4bc497f0282f555721cec36ce5fa62505d7c /test
parente1b88d7758c2f042169fe9a85d8f642692176cf7 (diff)
downloadscala-2ebff1417c9cfd39251a6a95a72c17af24b813c1.tar.gz
scala-2ebff1417c9cfd39251a6a95a72c17af24b813c1.tar.bz2
scala-2ebff1417c9cfd39251a6a95a72c17af24b813c1.zip
Added test for #2034.
Diffstat (limited to 'test')
-rw-r--r--test/pending/run/t2034.scala14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/pending/run/t2034.scala b/test/pending/run/t2034.scala
new file mode 100644
index 0000000000..ff2a8773de
--- /dev/null
+++ b/test/pending/run/t2034.scala
@@ -0,0 +1,14 @@
+object Test {
+
+ def main(args: Array[String]) {
+ val fooz = new foo.foo2
+ println(fooz)
+ }
+
+ object foo {
+ class foo2 {
+ override def toString = getClass.getSimpleName
+ }
+ }
+
+}