aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t2939.scala
blob: 57dd5202485f2ee8be7eba634a673a5dc00b261b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import collection._

object Proxies {
  class C1 extends MapProxy[Int,Int] { def self = Map[Int,Int]() }
  class C2 extends mutable.MapProxy[Int,Int] { def self = mutable.Map[Int,Int]() }
  class C3 extends immutable.MapProxy[Int,Int] { def self = immutable.Map[Int,Int]() }

  class C4 extends SetProxy[Int] { def self = Set[Int]() }
  class C5 extends mutable.SetProxy[Int] { def self = mutable.Set[Int]() }
  class C6 extends immutable.SetProxy[Int] { def self = immutable.Set[Int]() }

  class C7 extends SeqProxy[Int] { def self = Seq[Int]() }
}