blob: 3141647dba9a649d543b7576518b280aee334b1b (
plain) (
blame)
1
2
3
4
5
6
|
scala> val c = { class C { override def toString = "C" }; ((new C, new C { def f = 2 })) }
warning: there was one feature warning; re-run with -feature for details
c: (C, C{def f: Int}) forSome { type C <: AnyRef } = (C,C)
scala> :quit
|