aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/i2218.scala
blob: fbede8b9ba04d53c4252d9b6fef73b0f56049161 (plain) (blame)
1
2
3
4
5
6
7
8
9
trait Rule[In]

class C {
  def ruleWithName[In](f: In => Int): Rule[In] = {
     new DefaultRule(f) {}
  }

  class DefaultRule[In](f: In => Int) extends Rule[In]
}