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

Mix signature and type #36

Open
JohnCoene opened this issue Sep 7, 2024 · 0 comments
Open

Mix signature and type #36

JohnCoene opened this issue Sep 7, 2024 · 0 comments
Assignees
Labels
long-term Long-term feature question Further information is requested

Comments

@JohnCoene
Copy link
Contributor

JohnCoene commented Sep 7, 2024

Should it be allowed to mix signatures and types.

type math: func(x: int): int

func foo(callback: math | null): int {
  return 1
}

In foo callback can either be a variable or a function, and that just feels wrong, but there may be some odd cases where it may be useful.

@JohnCoene JohnCoene added question Further information is requested long-term Long-term feature labels Sep 7, 2024
@JohnCoene JohnCoene self-assigned this Sep 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
long-term Long-term feature question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant