blob: b7bb0168963a9bb9cdbfbbd6befabb14a01b8df1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
import scala.reflect.internal.util._
package bippity {
trait DingDongBippy
package bop {
class Foo {
class Bar
object Bar
}
}
}
object Test {
import bippity._
import bop._
def main(args: Array[String]): Unit = {
val f = new Foo
val instances = List(f, new f.Bar, f.Bar, new Foo with DingDongBippy, new f.Bar with DingDongBippy)
instances map (_.getClass.getName) foreach println
instances map shortClassOfInstance foreach println
}
}
|