aboutsummaryrefslogblamecommitdiff
path: root/tests/pending/run/t6135.scala
blob: c258842ff196798b4e9ef4d5454ef66e567b88f8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
                                             


                       
                                     







                                                                         
object Test extends dotty.runtime.LegacyApp {
  class A { class V }

  abstract class B[S] {
    def foo(t: S, a: A)(v: a.V): Unit
  }

  val b1 = new B[String] {
    def foo(t: String, a: A)(v: a.V) = () // Bridge method required here!
  }

  b1.foo("", null)(null)
}