SpacemanDMM icon indicating copy to clipboard operation
SpacemanDMM copied to clipboard

Union return types don't parse correctly

Open ZeWaka opened this issue 1 year ago • 2 comments

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

ZeWaka avatar Apr 25 '24 21:04 ZeWaka

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

ike709 avatar Apr 25 '24 22:04 ike709

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

SpaceManiac avatar Apr 26 '24 06:04 SpaceManiac