aboutsummaryrefslogblamecommitdiff
path: root/tests/pos/t2194.scala
blob: e87be509d15e9650bc364a4a1f74c2fc4066d3b6 (plain) (tree)
1
2
3
4
5
6
7
8







                                  
// tricky to do differently?
class C

object Test {
  def f = { object o extends C; o}
  val y: C = f
  val x = f
}