aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t1832.scala
blob: 9ad9703c29554ab301cf14c98202f7eddead9a04 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
trait Cloning {
  trait Foo
  def fn(g: Any => Unit): Foo

  class Star { def *(a: Cloning.this.Foo): Cloning.this.Foo }

  implicit def mkStar(i: Int): Star = new Star { def *(a: Foo): Foo = null }

  val pool = 4 * fn { case ghostSYMBOL: Int => ghostSYMBOL * 2 }
}