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

  abstract 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 }
}