@@ -1305,26 +1305,26 @@ trait Implicits:
13051305 /** Search a list of eligible implicit references */
13061306 private def searchImplicit (eligible : List [Candidate ], contextual : Boolean ): SearchResult =
13071307
1308- // A map that associates a priority change warning (between -source 3.4 and 3.6 )
1308+ // A map that associates a priority change warning (between -source 3.6 and 3.7 )
13091309 // with the candidate refs mentioned in the warning. We report the associated
13101310 // message if one of the critical candidates is part of the result of the implicit search.
13111311 val priorityChangeWarnings = mutable.ListBuffer [(/* critical:*/ List [TermRef ], Message )]()
13121312
13131313 def isWarnPriorityChangeVersion (sv : SourceVersion ): Boolean =
1314- sv.stable == SourceVersion .`3.5 ` || sv == SourceVersion .`3.6 -migration`
1314+ sv.stable == SourceVersion .`3.6 ` || sv == SourceVersion .`3.7 -migration`
13151315
13161316 /** Compare `alt1` with `alt2` to determine which one should be chosen.
13171317 *
13181318 * @return a number > 0 if `alt1` is preferred over `alt2`
13191319 * a number < 0 if `alt2` is preferred over `alt1`
13201320 * 0 if neither alternative is preferred over the other
13211321 * The behavior depends on the source version
1322- * before 3.5 : compare with preferGeneral = false
1323- * 3.5 : compare twice with preferGeneral = false and true, warning if result is different,
1322+ * before 3.6 : compare with preferGeneral = false
1323+ * 3.6 : compare twice with preferGeneral = false and true, warning if result is different,
13241324 * return old result with preferGeneral = false
1325- * 3.6 -migration: compare twice with preferGeneral = false and true, warning if result is different,
1325+ * 3.7 -migration: compare twice with preferGeneral = false and true, warning if result is different,
13261326 * return new result with preferGeneral = true
1327- * 3.6 and higher: compare with preferGeneral = true
1327+ * 3.7 and higher: compare with preferGeneral = true
13281328 *
13291329 * @param disambiguate The call is used to disambiguate two successes, not for ranking.
13301330 * When ranking, we are always filtering out either > 0 or <= 0 results.
@@ -1348,15 +1348,15 @@ trait Implicits:
13481348 case - 1 => " the second alternative"
13491349 case 1 => " the first alternative"
13501350 case _ => " none - it's ambiguous"
1351- if sv.stable == SourceVersion .`3.5 ` then
1351+ if sv.stable == SourceVersion .`3.6 ` then
13521352 warn(
13531353 em """ Given search preference for $pt between alternatives
13541354 | ${alt1.ref}
13551355 |and
13561356 | ${alt2.ref}
13571357 |will change.
13581358 |Current choice : ${choice(prev)}
1359- |New choice from Scala 3.6 : ${choice(cmp)}""" )
1359+ |New choice from Scala 3.7 : ${choice(cmp)}""" )
13601360 prev
13611361 else
13621362 warn(
@@ -1366,7 +1366,7 @@ trait Implicits:
13661366 | ${alt2.ref}
13671367 |has changed.
13681368 |Previous choice : ${choice(prev)}
1369- |New choice from Scala 3.6 : ${choice(cmp)}""" )
1369+ |New choice from Scala 3.7 : ${choice(cmp)}""" )
13701370 cmp
13711371 else cmp max prev
13721372 // When ranking, we keep the better of cmp and prev, which ends up retaining a candidate
0 commit comments