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
valpattern="""(^[-+]?)(\d*)-(\d*)-(\d*)""".r
val pattern(sign, yearSegment, monthSegment, daySegment) = text
From compiling:
[warn] -- Warning: /Users/eric/workspace/sjavatime/sjavatime/shared/src/main/scala/java/time/Instant.scala:391:17
[warn] 391 | val pattern(sign, yearSegment, monthSegment, daySegment,
[warn] | ^
[warn] |pattern binding uses refutable extractor `pattern`
[warn] |
[warn] |If this usage is intentional, this can be communicated by adding `: @unchecked` after the expression,
[warn] |which may result in a MatchError at runtime.
[warn] |This patch can be rewritten automatically under -rewrite -source 3.2-migration.
[warn] 392 | hourSegment, minutesSegment, secondsSegment, nanosecondsSegment) = text
[warn] -- Warning: /Users/eric/workspace/sjavatime/sjavatime/shared/src/main/scala/java/time/Instant.scala:391:17
[warn] 391 | val pattern(sign, yearSegment, monthSegment, daySegment,
[warn] | ^
[warn] |pattern binding uses refutable extractor `pattern`
[warn] |
[warn] |If this usage is intentional, this can be communicated by adding `: @unchecked` after the expression,
[warn] |which may result in a MatchError at runtime.
[warn] |This patch can be rewritten automatically under -rewrite -source 3.2-migration.
[warn] 392 | hourSegment, minutesSegment, secondsSegment, nanosecondsSegment) = text
[warn] -- Warning: /Users/eric/workspace/sjavatime/sjavatime/shared/src/main/scala/java/time/LocalDate.scala:446:17
[warn] 446 | val pattern(sign, yearSegment, monthSegment, daySegment) = text
[warn] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[warn] |pattern binding uses refutable extractor `pattern`
[warn] |
[warn] |If this usage is intentional, this can be communicated by adding `: @unchecked` after the expression,
[warn] |which may result in a MatchError at runtime.
[warn] |This patch can be rewritten automatically under -rewrite -source 3.2-migration.
[warn] -- Warning: /Users/eric/workspace/sjavatime/sjavatime/shared/src/main/scala/java/time/LocalDate.scala:446:17
[warn] 446 | val pattern(sign, yearSegment, monthSegment, daySegment) = text
[warn] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[warn] |pattern binding uses refutable extractor `pattern`
[warn] |
[warn] |If this usage is intentional, this can be communicated by adding `: @unchecked` after the expression,
[warn] |which may result in a MatchError at runtime.
[warn] |This patch can be rewritten automatically under -rewrite -source 3.2-migration.
[warn] two warnings found
The text was updated successfully, but these errors were encountered:
Code in
Instant
andLocalDate
:From compiling:
The text was updated successfully, but these errors were encountered: