SpaceManiac / SpacemanDMM

A BYOND language smartness provider, map renderer, and more.
https://marketplace.visualstudio.com/items?itemName=platymuus.dm-langclient
GNU General Public License v3.0
83 stars 83 forks source link

Union return types don't parse correctly #385

Closed ZeWaka closed 5 months ago

ZeWaka commented 7 months ago

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 commented 7 months ago

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

SpaceManiac commented 7 months ago

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