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

Issue an error if transitive visibility differs #1420

Open
alecthomas opened this issue May 7, 2024 · 0 comments
Open

Issue an error if transitive visibility differs #1420

alecthomas opened this issue May 7, 2024 · 0 comments
Labels
intermediate A task requiring an intermediate level of knowledge

Comments

@alecthomas
Copy link
Collaborator

eg. In this scenario In will be implicitly private due to its use by Private(), but needs to be subsequently exported by its use by Exported().

type In struct {}

//ftl:verb
func Private(ctx context.Context, in In) error {}

//ftl:verb export
func Exported(ctx context.Context, in In) error {}

Same should be true of any visibility propagation.

@github-actions github-actions bot added the triage Issue needs triaging label May 7, 2024
@alecthomas alecthomas added intermediate A task requiring an intermediate level of knowledge and removed triage Issue needs triaging labels May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
intermediate A task requiring an intermediate level of knowledge
Projects
None yet
Development

No branches or pull requests

1 participant