summaryrefslogtreecommitdiff
path: root/test/files/neg/t5617.scala
blob: 41541b5e90336483dc42d844a22ec182bb2abf04 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
trait A {
  def foo(i: Int)(b: String): Int
  def foo(u: Unit): Int // not reported
  def foo(x: Float): Int // not reported
}
trait B[X] extends A {
  def foo(x: X): Int
  def foo(u: Unit): Int
  final def foo(x: Float): Int = 0 // not reported
}
trait C extends B[Boolean] {
  override def foo(s: String): Int
  val foo = 0 // not reported
}