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

Union return types don't parse correctly #385

Closed
ZeWaka opened this issue Apr 25, 2024 · 2 comments
Closed

Union return types don't parse correctly #385

ZeWaka opened this issue Apr 25, 2024 · 2 comments

Comments

@ZeWaka
Copy link
Contributor

ZeWaka commented Apr 25, 2024

Error:

got '|', expected one of: '{', ';', if, while, do, for, spawn, switch, try, set, break, continue, del, var, return, CRASH, throw, goto, operator, term

Code:

/datum/hud/critter/proc/create_stamina_element() as num | null
@ike709
Copy link

ike709 commented Apr 25, 2024

I can't be bothered to find the BYOND bug report, but note that this was broken in BYOND too until very recently.

@SpaceManiac
Copy link
Owner

/datum/hud | null isn't legal in BYOND either so I'll assume you mean input types like num|text which do need fixing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants