You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/files/neg/t7415.check
+14-11Lines changed: 14 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -7,32 +7,35 @@ t7415.scala:14: warning: Usages of value foo will be easy to mistake for calls t
7
7
t7415.scala:18: warning: Usages of value foo will be easy to mistake for calls to def foo(implicit a: T): Int, which has a single implicit parameter list.
8
8
private[this] val foo = 42 // warn
9
9
^
10
-
t7415.scala:31: warning: Calls to parameterless method foo will be easy to mistake for calls to def foo(implicit a: T): Int, which has a single implicit parameter list.
10
+
t7415.scala:33: warning: Calls to parameterless method foo will be easy to mistake for calls to def foo(implicit a: T): Int, which has a single implicit parameter list.
11
11
class Mixed extends Base with T1 // warn here
12
12
^
13
-
t7415.scala:41: warning: Usages of value foo will be easy to mistake for calls to overloads which have a single implicit parameter list:
13
+
t7415.scala:36: warning: Calls to parameterless method foo will be easy to mistake for calls to def foo(implicit a: T): Int, which has a single implicit parameter list.
14
+
def foo(implicit a: T) = 0 // warn although x.foo picks this one
15
+
^
16
+
t7415.scala:47: warning: Usages of value foo will be easy to mistake for calls to overloads which have a single implicit parameter list:
14
17
def foo(implicit e: String): Int
15
18
def foo(implicit e: Int): Int
16
19
val foo = 0 // warn
17
20
^
18
-
t7415.scala:54: warning: Usages of value x will be easy to mistake for calls to def x(implicit t: T): Int, which has a single implicit parameter list.
21
+
t7415.scala:60: warning: Usages of value x will be easy to mistake for calls to def x(implicit t: T): Int, which has a single implicit parameter list.
19
22
def x(implicit t: T) = 27 // warn
20
23
^
21
-
t7415.scala:65: warning: Usages of value i will be easy to mistake for calls to def i(implicit t: T): Int, which has a single implicit parameter list.
24
+
t7415.scala:71: warning: Usages of value i will be easy to mistake for calls to def i(implicit t: T): Int, which has a single implicit parameter list.
22
25
class R(val i: Int) extends Q // warn
23
26
^
24
-
t7415.scala:66: warning: Usages of value i will be easy to mistake for calls to def i(implicit t: T): Int, which has a single implicit parameter list.
27
+
t7415.scala:72: warning: Usages of value i will be easy to mistake for calls to def i(implicit t: T): Int, which has a single implicit parameter list.
25
28
class S(i: Int) extends R(i) { // warn
26
29
^
27
-
t7415.scala:66: warning: Usages of value i will be easy to mistake for calls to def i(implicit t: T): Int, which has a single implicit parameter list.
30
+
t7415.scala:72: warning: Usages of value i will be easy to mistake for calls to def i(implicit t: T): Int, which has a single implicit parameter list.
28
31
class S(i: Int) extends R(i) { // warn
29
32
^
30
-
t7415.scala:76: warning: Calls to parameterless method f will be easy to mistake for calls to def f[A](implicit t: T): Int, which has a single implicit parameter list.
33
+
t7415.scala:82: warning: Calls to parameterless method f will be easy to mistake for calls to def f[A](implicit t: T): Int, which has a single implicit parameter list.
31
34
def f[A] = 27 // warn
32
35
^
33
-
t7415.scala:82: warning: Calls to parameterless method foo will be easy to mistake for calls to def foo(implicit a: T): Int, which has a single implicit parameter list.
34
-
val d1 = new Derived1 {} // warn
35
-
^
36
+
t7415.scala:88: warning: Usages of value an will be easy to mistake for calls to def an[A](implicit evidence$1: scala.reflect.ClassTag[A]): Unit, which has a single implicit parameter list.
0 commit comments