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:
parent
c0df335693
commit
d26f634bfb
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue