Skip to content

Fix Deferred warnings - #4903

Open
xuwei-k wants to merge 1 commit into
typelevel:mainfrom
xuwei-k:Deferred-warn
Open

Fix Deferred warnings#4903
xuwei-k wants to merge 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`

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.

1 participant