summaryrefslogblamecommitdiff
path: root/test/files/pos/t4501.scala
blob: 40628f1a4bea61735b0c51d29c0036c09574f6a2 (plain) (tree)
1
2
3
4
5
6
7
8
9







                                          
 




                                                                                          
// After lub modification
import scala.collection.mutable.ListBuffer

class A {
  def foo[T](a:T, b:T):T = a
  def f1 = foo(ListBuffer(), List())
  def f2 = foo(ListBuffer(), ListBuffer())
  def f3 = foo(List(), List())

  // scalap
  // def f1 : scala.collection.Seq[scala.Nothing] = { /* compiled code */ }
  // def f2 : scala.collection.mutable.ListBuffer[scala.Nothing] = { /* compiled code */ }
  // def f3 : scala.collection.immutable.List[scala.Nothing] = { /* compiled code */ }
}