@@ -1305,26 +1305,26 @@ trait Implicits:
1305
1305
/** Search a list of eligible implicit references */
1306
1306
private def searchImplicit (eligible : List [Candidate ], contextual : Boolean ): SearchResult =
1307
1307
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 )
1309
1309
// with the candidate refs mentioned in the warning. We report the associated
1310
1310
// message if one of the critical candidates is part of the result of the implicit search.
1311
1311
val priorityChangeWarnings = mutable.ListBuffer [(/* critical:*/ List [TermRef ], Message )]()
1312
1312
1313
1313
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`
1315
1315
1316
1316
/** Compare `alt1` with `alt2` to determine which one should be chosen.
1317
1317
*
1318
1318
* @return a number > 0 if `alt1` is preferred over `alt2`
1319
1319
* a number < 0 if `alt2` is preferred over `alt1`
1320
1320
* 0 if neither alternative is preferred over the other
1321
1321
* 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,
1324
1324
* 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,
1326
1326
* return new result with preferGeneral = true
1327
- * 3.6 and higher: compare with preferGeneral = true
1327
+ * 3.7 and higher: compare with preferGeneral = true
1328
1328
*
1329
1329
* @param disambiguate The call is used to disambiguate two successes, not for ranking.
1330
1330
* When ranking, we are always filtering out either > 0 or <= 0 results.
@@ -1348,15 +1348,15 @@ trait Implicits:
1348
1348
case - 1 => " the second alternative"
1349
1349
case 1 => " the first alternative"
1350
1350
case _ => " none - it's ambiguous"
1351
- if sv.stable == SourceVersion .`3.5 ` then
1351
+ if sv.stable == SourceVersion .`3.6 ` then
1352
1352
warn(
1353
1353
em """ Given search preference for $pt between alternatives
1354
1354
| ${alt1.ref}
1355
1355
|and
1356
1356
| ${alt2.ref}
1357
1357
|will change.
1358
1358
|Current choice : ${choice(prev)}
1359
- |New choice from Scala 3.6 : ${choice(cmp)}""" )
1359
+ |New choice from Scala 3.7 : ${choice(cmp)}""" )
1360
1360
prev
1361
1361
else
1362
1362
warn(
@@ -1366,7 +1366,7 @@ trait Implicits:
1366
1366
| ${alt2.ref}
1367
1367
|has changed.
1368
1368
|Previous choice : ${choice(prev)}
1369
- |New choice from Scala 3.6 : ${choice(cmp)}""" )
1369
+ |New choice from Scala 3.7 : ${choice(cmp)}""" )
1370
1370
cmp
1371
1371
else cmp max prev
1372
1372
// When ranking, we keep the better of cmp and prev, which ends up retaining a candidate
0 commit comments