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
It is also possible to selectively suppress the warning
132
+
using the [`@nowarn` annotation](https://www.scala-lang.org/api/current/scala/annotation/nowarn.html):
133
+
134
+
```scala
135
+
importscala.annotation.nowarn
136
+
137
+
classA
138
+
classBextendsA
139
+
140
+
givenA()
141
+
givenB()
142
+
143
+
@nowarn("msg=Given search preference")
144
+
valx= summon[A]
145
+
```
146
+
147
+
For more details, you can consult the guide on [configuring and suppressing warnings]({{ site.baseurl }}/2021/01/12/configuring-and-suppressing-warnings.html).
148
+
120
149
### Resorting to Explicit Parameters
121
150
122
151
If the pre-3.5 behavior is preferred, you can explicitly pass the
@@ -167,11 +196,13 @@ hierarchies of classes that provide `given` instances. By importing the
167
196
`given` instances from the object with the highest priority, you can
168
197
control which instance is selected by the compiler.
169
198
170
-
**Note**: Due to the release cut-off, Scala 3.5.0 may still report a
199
+
#### Upcoming Bugfixes
200
+
201
+
Due to the release cut-off, Scala 3.5.0 may still report a
171
202
warning that the above pattern will be ambiguous in Scala
172
203
3.6. However, this warning is incorrect. The issue has already been
173
-
resolved, and the improvements will be included in an upcoming bugfix
174
-
release.
204
+
resolved, and an upcoming bugfix release will improve the
0 commit comments