summaryrefslogtreecommitdiff
path: root/test/pending/pos/t1832.scala
blob: bca863f4bd5756f8d958c6ca224ed7b72e0361ce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
// Edit by paulp: reduced.
trait Cloning {
  trait Foo
  def fn(g: Int => Unit): Foo

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

  val pool1 = 4 * fn { case i => i * 2 }
  val pool2 = 4 * fn { case i: Int => i * 2 }
}