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

can not pass open formal type parameter to inherited feature #3300

Open
michaellilltokiwa opened this issue Jul 2, 2024 · 0 comments
Open
Labels
enhancement New feature or request Fuzion language related to the language, syntax, etc

Comments

@michaellilltokiwa
Copy link
Member

I think this could/should work but gives an error currently.

/home/not_synced/fuzion (2024-07-02T11-18-09+02-00)1$ cat ~/playground/test.fz
ex =>
  public either(public LEFT type, public RIGHT type...) : choice LEFT RIGHT is


/home/not_synced/fuzion (2024-07-02T11-18-09+02-00)$ make no-java && fz ~/playground/test.fz 

/home/sam/playground/test.fz:2:71: error 1: Illegal use of open formal type parameter type
  public either(public LEFT type, public RIGHT type...) : choice LEFT RIGHT is
----------------------------------------------------------------------^^^^^
Open formal type parameter type is permitted only as the type of the last argument in a formal arguments list of an abstract feature.
Open formal argument: 'RIGHT'

one error.
@michaellilltokiwa michaellilltokiwa added enhancement New feature or request Fuzion language related to the language, syntax, etc labels Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Fuzion language related to the language, syntax, etc
Projects
None yet
Development

No branches or pull requests

1 participant