Skip to content

Fix lazyPromiseInEffectSync any false positives - #744

Merged
mattiamanzati merged 1 commit into
mainfrom
fix/lazy-promise-any
Jul 2, 2026
Merged

mattiamanzati merged 1 commit into
mainfrom
fix/lazy-promise-any

Conversation

@mattiamanzati

Copy link
Copy Markdown
Contributor

Summary

  • Stop treating any and unknown return types as Promise types in TypeParser.promiseType before the assignability fallback.
  • Add v3 and v4 lazyPromiseInEffectSync regression fixture cases for Effect.sync thunks returning any and unknown.
  • Add a patch changeset.

Testing

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

@changeset-bot

changeset-bot Bot commented Jul 2, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 928a3e8

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 1707983 into main Jul 2, 2026
5 checks passed
@mattiamanzati
mattiamanzati deleted the fix/lazy-promise-any branch July 2, 2026 14:25
@github-actions github-actions Bot mentioned this pull request Jul 2, 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