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

Incorrect documentation: nullable types cannot access methods of inner type #285

Open
1 task
MeAmAnUsername opened this issue Apr 8, 2022 · 0 comments
Open
1 task
Labels
Component: Documentation Priority: medium Status: specified Enhancement that is ready to implement Type: bug Something isn't working

Comments

@MeAmAnUsername
Copy link
Owner

Summary
The table at https://www.spoofax.dev/references/pipelines/types/#built-in-types specifies that nullable types can access methods of the inner type, but that is incorrect.

Todo

  • Fix documentation

Actual semantics
Nullable types have no methods (for now). To access the methods of the inner type, you must first make it non-nullable.

@MeAmAnUsername MeAmAnUsername added Type: bug Something isn't working Status: specified Enhancement that is ready to implement Priority: medium Component: Documentation labels Apr 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Documentation Priority: medium Status: specified Enhancement that is ready to implement Type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant