aboutsummaryrefslogblamecommitdiff
path: root/tests/pos/t5082.scala
blob: 63eeda38bae1714825a68e54b8b19c65a384f63b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                                      
trait Something[T]
object Test { class A }
case class Test() extends Something[Test.A]

object User {
  val Test() = Test()
}

object Wrap {
  trait Something[T]
  object Test { class A }
  case class Test(a: Int, b: Int)(c: String) extends Something[Test.A]
  val Test(x, y) = Test(1, 2)(""); (x + y).toString
}