Skip to content

Navigation Menu

Sign in
Appearance settings
Sign up
Appearance settings

Report an error for an aliased type include - #7557

#7557
Open
bentsherman wants to merge 1 commit into
masternextflow-io/nextflow:masterfrom
fix-7437-alias-type-includenextflow-io/nextflow:fix-7437-alias-type-includeCopy head branch name to clipboard
Open

Report an error for an aliased type include#7557
bentsherman wants to merge 1 commit into
masternextflow-io/nextflow:masterfrom
fix-7437-alias-type-includenextflow-io/nextflow:fix-7437-alias-type-includeCopy head branch name to clipboard

Conversation

@bentsherman

Copy link
Copy Markdown
Member

Fix #7437

Aliases were silently ignored when including a record or enum type. The included type was appended to the compiler imports under its own name, so the alias never resolved while the original name stayed in scope.

This PR reports an error for included-type aliasing, since it is not needed. Aliasing was intended only to work around the fact that a process/workflow cannot be called more than once in the same workflow

Aliases were silently ignored when including a record or enum. The
included type was appended to the compiler imports under its own name,
so the alias never resolved while the original name stayed in scope --
the opposite of how aliasing works for processes, workflows, and
functions. The user saw a confusing "not defined" error at the use site
instead of an error on the alias.

Reject the alias where includes are declared, so it is reported on the
include entry itself.

Closes #7437

Signed-off-by: Ben Sherman <bentshermann@gmail.com>
@bentsherman
bentsherman requested a review from jorgee August 27, 2026 16:42
@bentsherman
bentsherman requested a review from a team as a code owner August 27, 2026 16:42
@netlify

netlify Bot commented Aug 27, 2026

Copy link
Copy Markdown

Deploy Preview for nextflow-docs canceled.

Name Link
🔨 Latest commit 57524db
🔍 Latest deploy log https://app.netlify.com/projects/nextflow-docs/deploys/6a9068f37e6f8e00085c48d9

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.

Aliased type/record gives confusing error/confusing behaviour

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.