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



                             
                                                                                                                       


                                                                
trait Cloning {
  trait Foo
  def fn(g: Any => Unit): Foo

  implicit def mkStar(i: Int): AnyRef{def *(a: Cloning.this.Foo): Cloning.this.Foo} = new { def *(a: Foo): Foo = null }

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