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

From Discord: Bug Report: Incorrect Type Inference with Effect.repeat #3403

Closed
effect-bot opened this issue Aug 3, 2024 · 0 comments
Closed
Labels
bug Something isn't working

Comments

@effect-bot
Copy link

Summary

The user is reporting a potential bug with the Effect.repeat function in the Effect-TS library. Specifically, they observe that the inferred type of the program variable is incorrect. The expected type is [string[], number], but the inferred type is string[]. The user notes that this issue does not occur when using the Effect.repeatN function. They also provide a code snippet to demonstrate the issue and a link to the Effect-TS playground.

Key Takeaways:

  1. The user suspects a bug with Effect.repeat related to incorrect type inference.
  2. The expected type is [string[], number], but the inferred type is string[].
  3. The issue does not occur with Effect.repeatN.
  4. A code snippet and a playground link are provided for reference.

Discord thread

https://discord.com/channels/795981131316985866/1269103375065026580

@gcanti gcanti added the bug Something isn't working label Aug 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants