Another one brought to compilation by r25149. Test case closes #1318, no review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25151 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
extempore 2011-06-24 13:16:17 +00:00
parent 5abc44a1d8
commit 3d1e14d51f
1 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,31 @@
abstract class F {
type mType <: M
}
abstract class M { self =>
type mType <: M
type fType = F {type mType >: self.mType }
def fs: List[fType]
}
abstract class A0 extends M {
type mType = A0
def fs: List[fType] = Nil
}
object A extends A0 {}
abstract class B0 extends M {
type mType = B0
def fs: List[fType] = Nil
}
object B extends B0 {}
object C {
def ab = List(A) ::: List(B)
// the following compiles successfully:
// def ab = List(A) ::: List[M](B)
}