aboutsummaryrefslogblamecommitdiff
path: root/tests/pos/i583a.scala
blob: 7a7b1f848afe9cd9f816b20c06eb40681ca102f8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                        



















                         
object Test {

  class C {
    type T
    val f: T = ???
    def foo(x: T): T = x
  }

  var x = new C
  val y = x.foo(???)

}
object Test1 {

  class Box[B](x: B)

  class C {
    type T
    val box: Box[T] = ???
    def f(x: T): T = ???
    def x: T = ???
  }

  def c: C = new C

  val b = c.box

  val f = c.f _

}