|
1 | 1 | -- [E194] Potential Issue Warning: tests/warn/i16743.scala:30:6 -------------------------------------------------------- |
2 | 2 | 30 | def t = 27 // warn |
3 | 3 | | ^ |
4 | | - | Extension method t will never be selected |
| 4 | + | Extension method t will never be selected from type T |
5 | 5 | | because T already has a member with the same name and compatible parameter types. |
6 | 6 | | |
7 | 7 | | longer explanation available when compiling with `-explain` |
8 | 8 | -- [E194] Potential Issue Warning: tests/warn/i16743.scala:32:6 -------------------------------------------------------- |
9 | 9 | 32 | def g(x: String)(i: Int): String = x*i // warn |
10 | 10 | | ^ |
11 | | - | Extension method g will never be selected |
| 11 | + | Extension method g will never be selected from type T |
12 | 12 | | because T already has a member with the same name and compatible parameter types. |
13 | 13 | | |
14 | 14 | | longer explanation available when compiling with `-explain` |
15 | 15 | -- [E194] Potential Issue Warning: tests/warn/i16743.scala:33:6 -------------------------------------------------------- |
16 | 16 | 33 | def h(x: String): String = x // warn |
17 | 17 | | ^ |
18 | | - | Extension method h will never be selected |
| 18 | + | Extension method h will never be selected from type T |
19 | 19 | | because T already has a member with the same name and compatible parameter types. |
20 | 20 | | |
21 | 21 | | longer explanation available when compiling with `-explain` |
22 | 22 | -- [E194] Potential Issue Warning: tests/warn/i16743.scala:35:6 -------------------------------------------------------- |
23 | 23 | 35 | def j(x: Any, y: Int): String = (x.toString)*y // warn |
24 | 24 | | ^ |
25 | | - | Extension method j will never be selected |
| 25 | + | Extension method j will never be selected from type T |
26 | 26 | | because T already has a member with the same name and compatible parameter types. |
27 | 27 | | |
28 | 28 | | longer explanation available when compiling with `-explain` |
29 | 29 | -- [E194] Potential Issue Warning: tests/warn/i16743.scala:36:6 -------------------------------------------------------- |
30 | 30 | 36 | def k(x: String): String = x // warn |
31 | 31 | | ^ |
32 | | - | Extension method k will never be selected |
| 32 | + | Extension method k will never be selected from type T |
33 | 33 | | because T already has a member with the same name and compatible parameter types. |
34 | 34 | | |
35 | 35 | | longer explanation available when compiling with `-explain` |
36 | 36 | -- [E194] Potential Issue Warning: tests/warn/i16743.scala:38:6 -------------------------------------------------------- |
37 | 37 | 38 | def m(using String): String = "m" + summon[String] // warn |
38 | 38 | | ^ |
39 | | - | Extension method m will never be selected |
| 39 | + | Extension method m will never be selected from type T |
40 | 40 | | because T already has a member with the same name and compatible parameter types. |
41 | 41 | | |
42 | 42 | | longer explanation available when compiling with `-explain` |
43 | 43 | -- [E194] Potential Issue Warning: tests/warn/i16743.scala:39:6 -------------------------------------------------------- |
44 | 44 | 39 | def n(using String): String = "n" + summon[String] // warn |
45 | 45 | | ^ |
46 | | - | Extension method n will never be selected |
| 46 | + | Extension method n will never be selected from type T |
47 | 47 | | because T already has a member with the same name and compatible parameter types. |
48 | 48 | | |
49 | 49 | | longer explanation available when compiling with `-explain` |
50 | 50 | -- [E194] Potential Issue Warning: tests/warn/i16743.scala:40:6 -------------------------------------------------------- |
51 | 51 | 40 | def o: String = "42" // warn |
52 | 52 | | ^ |
53 | | - | Extension method o will never be selected |
| 53 | + | Extension method o will never be selected from type T |
54 | 54 | | because T already has a member with the same name and compatible parameter types. |
55 | 55 | | |
56 | 56 | | longer explanation available when compiling with `-explain` |
57 | 57 | -- [E194] Potential Issue Warning: tests/warn/i16743.scala:41:6 -------------------------------------------------------- |
58 | 58 | 41 | def u: Int = 27 // warn |
59 | 59 | | ^ |
60 | | - | Extension method u will never be selected |
| 60 | + | Extension method u will never be selected from type T |
61 | 61 | | because T already has a member with the same name and compatible parameter types. |
62 | 62 | | |
63 | 63 | | longer explanation available when compiling with `-explain` |
64 | 64 | -- [E194] Potential Issue Warning: tests/warn/i16743.scala:44:6 -------------------------------------------------------- |
65 | 65 | 44 | def at: Int = 42 // warn |
66 | 66 | | ^ |
67 | | - | Extension method at will never be selected |
| 67 | + | Extension method at will never be selected from type T |
68 | 68 | | because T already has a member with the same name and compatible parameter types. |
69 | 69 | | |
70 | 70 | | longer explanation available when compiling with `-explain` |
71 | 71 | -- [E194] Potential Issue Warning: tests/warn/i16743.scala:46:6 -------------------------------------------------------- |
72 | 72 | 46 | def x(using String)(n: Int): Int = summon[String].toInt + n // warn |
73 | 73 | | ^ |
74 | | - | Extension method x will never be selected |
| 74 | + | Extension method x will never be selected from type T |
75 | 75 | | because T already has a member with the same name and compatible parameter types. |
76 | 76 | | |
77 | 77 | | longer explanation available when compiling with `-explain` |
78 | 78 | -- [E194] Potential Issue Warning: tests/warn/i16743.scala:47:6 -------------------------------------------------------- |
79 | 79 | 47 | def y(using String)(s: String): String = s + summon[String] // warn |
80 | 80 | | ^ |
81 | | - | Extension method y will never be selected |
| 81 | + | Extension method y will never be selected from type T |
82 | 82 | | because T already has a member with the same name and compatible parameter types. |
83 | 83 | | |
84 | 84 | | longer explanation available when compiling with `-explain` |
0 commit comments