aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t2441pos.scala
blob: 25eb2232c9475b427dd7e4d6436c1f3f512516c2 (plain) (blame)
1
2
3
4
5
6
7
8
abstract class A {
  private def foo = List(1, 2)
}
trait B extends A {
  private def foo = List("a", "b")
  // However it compiles correctly if the type is given:
  // private def foo: List[String] = List("a", "b")
}