Skip to content

Fix unnecessary Effect.gen nested yield false positive - #746

Merged
mattiamanzati merged 1 commit into
mainfrom
fix/unnecessary-effect-gen-nested-yield
Jul 3, 2026
Merged

mattiamanzati merged 1 commit into
mainfrom
fix/unnecessary-effect-gen-nested-yield

Conversation

@mattiamanzati

Copy link
Copy Markdown
Contributor

Summary

  • Avoid reporting unnecessaryEffectGen when the yielded expression contains a nested yield*.
  • Add v3 and v4 regression fixtures for a single-return Effect.gen with multiple yield* expressions.
  • Add a patch changeset.

Tests

  • pnpm codegen
  • pnpm lint-fix
  • pnpm check
  • pnpm test
  • pnpm test:v4

@changeset-bot

changeset-bot Bot commented Jul 3, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: bb38dbd

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@effect/language-service Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@mattiamanzati
mattiamanzati merged commit 5da9914 into main Jul 3, 2026
5 checks passed
@mattiamanzati
mattiamanzati deleted the fix/unnecessary-effect-gen-nested-yield branch July 3, 2026 09:12
@github-actions github-actions Bot mentioned this pull request Jul 3, 2026
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