Skip to content

Fix Deferred warnings - #4903

Merged
satorg merged 1 commit into
typelevel:mainfrom
xuwei-k:Deferred-warn
Sep 20, 2026
Merged

satorg merged 1 commit into
typelevel:mainfrom
xuwei-k:Deferred-warn

Conversation

@xuwei-k

@xuwei-k xuwei-k commented Sep 9, 2026

Copy link
Copy Markdown
Contributor
[warn] -- [E092] Pattern Match Unchecked Warning: /home/runner/work/cats/cats/core/src/main/scala/cats/instances/order.scala:63:19 
[warn] 63 |              case Deferred(f) => loop(f)
[warn]    |                   ^
[warn]    |the type test for Deferred[A] cannot be checked at runtime because it's a local class
[warn]    |
[warn]    | longer explanation available when compiling with `-explain`
[warn] -- [E092] Pattern Match Unchecked Warning: /home/runner/work/cats/cats/core/src/main/scala/cats/instances/ordering.scala:59:19 
[warn] 59 |              case Deferred(f) => loop(f)
[warn]    |                   ^
[warn]    |the type test for Deferred[A] cannot be checked at runtime because it's a local class
[warn]    |
[warn]    | longer explanation available when compiling with `-explain`
[warn] -- [E092] Pattern Match Unchecked Warning: /home/runner/work/cats/cats/core/src/main/scala/cats/instances/partialOrder.scala:57:19 
[warn] 57 |              case Deferred(f) => loop(f)
[warn]    |                   ^
[warn]    |the type test for Deferred[A] cannot be checked at runtime because it's a local class
[warn]    |
[warn]    | longer explanation available when compiling with `-explain`
[warn] -- [E092] Pattern Match Unchecked Warning: /home/runner/work/cats/cats/core/src/main/scala/cats/instances/partialOrdering.scala:67:19 
[warn] 67 |              case Deferred(f) => loop(f)
[warn]    |                   ^
[warn]    |the type test for Deferred[A] cannot be checked at runtime because it's a local class
[warn]    |
[warn]    | longer explanation available when compiling with `-explain`
[warn] -- [E092] Pattern Match Unchecked Warning: /home/runner/work/cats/cats/core/src/main/scala/cats/instances/show.scala:38:19 
[warn] 38 |              case Deferred(f) => loop(f)
[warn]    |                   ^
[warn]    |the type test for Deferred[A] cannot be checked at runtime because it's a local class
[warn]    |
[warn]    | longer explanation available when compiling with `-explain`

@satorg satorg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@satorg
satorg merged commit f85e20d into typelevel:main Sep 20, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants