blob: 94cdff4870be13afe05cfefa9a07e18ff22b0f40 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
Type in expressions to have them evaluated.
Type :help for more information.
scala>
scala> val c = { class C { override def toString = "C" }; ((new C, new C { def f = 2 })) }
warning: there were 1 feature warnings; re-run with -feature for details
c: (C, C{def f: Int}) forSome { type C <: AnyRef } = (C,C)
scala>
scala>
|