Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unused local definition for concrete values #60

Open
jamesward opened this issue Jul 27, 2023 · 0 comments
Open

unused local definition for concrete values #60

jamesward opened this issue Jul 27, 2023 · 0 comments

Comments

@jamesward
Copy link

If I turn these on:

scalacOptions := Seq(
  "-Wunused:locals",
  "-Xfatal-warnings",
)

And have a defer that returns a concrete value like:

    defer:
      ZIO.debug("hello, world").run
      ()

I get:

[error] 6 |    defer:
[error]   |    ^
[error]   |    unused local definition

Reproducer: https://github.com/jamesward/zio-direct-bug-unused

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

No branches or pull requests

1 participant