File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2672,7 +2672,7 @@ object Parsers {
2672
2672
atSpan(startOffset(pat), accept(LARROW )) {
2673
2673
val checkMode =
2674
2674
if casePat then GenCheckMode .FilterAlways
2675
- else if sourceVersion.isAtLeast(`future `) then GenCheckMode .Check
2675
+ else if sourceVersion.isAtLeast(`3.3 `) then GenCheckMode .Check
2676
2676
else if sourceVersion.isAtLeast(`3.2`) then GenCheckMode .CheckAndFilter
2677
2677
else GenCheckMode .FilterNow // filter on source version < 3.2, for backward compat
2678
2678
GenFrom (pat, subExpr(), checkMode)
Original file line number Diff line number Diff line change @@ -870,7 +870,7 @@ trait Checking {
870
870
|
871
871
|If $usage is intentional, this can be communicated by $fix,
872
872
|which $addendum. $rewriteMsg""" ),
873
- pos, warnFrom = `3.2`, errorFrom = `future `)
873
+ pos, warnFrom = `3.2`, errorFrom = `3.3 `)
874
874
false
875
875
}
876
876
Original file line number Diff line number Diff line change @@ -394,7 +394,7 @@ object StringContextTestUtils:
394
394
private val decimalSeparator : Char = new DecimalFormat ().getDecimalFormatSymbols().getDecimalSeparator()
395
395
private val numberPattern = """ (\d+)\.(\d+.*)""" .r
396
396
private def applyProperLocale (number : String ): String =
397
- val numberPattern(intPart, fractionalPartAndSuffix) = number
397
+ val numberPattern(intPart, fractionalPartAndSuffix) = number : @ unchecked
398
398
s " $intPart$decimalSeparator$fractionalPartAndSuffix"
399
399
400
400
extension (sc : StringContext )
You can’t perform that action at this time.
0 commit comments