summaryrefslogblamecommitdiff
path: root/test/files/neg/t3987.scala
blob: 1226d80228318db48e220d0dd8aa21870de49465 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13


                
 








                                               
class Gox {
  object Zed { }
  class Zed  { }
}

object Test {
  type GoxZed = t#Zed forSome { type t <: Gox }

  def main(args: Array[String]): Unit = {
    val x = new Gox
    val y: GoxZed = x
  }
}