blob: 11718471bc21129999ffd73052fcc889b4bbbfe7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
trait A
trait B extends A
class C extends A with B
object Test extends App {
val c = classOf[C]
println(c.getGenericInterfaces.toList)
assert(c.getGenericInterfaces.length == c.getInterfaces.length,
s"mismatch between ${c.getGenericInterfaces} and ${c.getInterfaces}")
}
|