summaryrefslogtreecommitdiff
path: root/test/files/neg/maxwarns.scala
blob: decb8a786623cb3c3d8569332ada275715be806e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
object X {
  @deprecated("just to annoy people", since="forever")
  def x = 42

  def f(i: String) = i
}

trait T {
  import X._

  def a = x

  def b = x

  def c = x

  def d = x

  def e = x

  def F = f("")

  def g = f("")

  def h = f("")

  def i = f("")

  def j = f("")
}