aboutsummaryrefslogblamecommitdiff
path: root/tests/patmat/aladdin1055/A.scala
blob: 862336e30cb1c04231af821e78c3906e4f28b056 (plain) (tree)
1
2
3
4
5
6





                                                                   
object A {
  sealed trait T { def f: Int }
  class TT extends T { def f = 0 }

  def foo = new T { def f = 1 } // local subclass of sealed trait T
}