Added test for #2034.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18078 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
phaller 2009-06-22 14:43:26 +00:00
parent c0df335693
commit d26f634bfb
1 changed files with 14 additions and 0 deletions

View File

@ -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
}
}
}