rokucommunity / brighterscript

A superset of Roku's BrightScript language
MIT License
152 stars 47 forks source link

Example annotation not working #762

Open iBicha opened 1 year ago

iBicha commented 1 year ago

From https://github.com/rokucommunity/brighterscript/blob/master/docs/annotations.md#examples

Screen Shot 2022-12-22 at 5 14 43 AM
TwitchBronBron commented 1 year ago

I believe the examples are wrong. As far as I know, annotations don't work inside function bodies. They were intended to be used above higher-level things like above classes, functions, namespaces, etc. This comment says the same thing.

We'd be open to accepting a PR to support annotations above statements inside function bodies, but right now I think I'll just remove the incorrect example code.

iBicha commented 1 year ago

Yeah removing the examples make sense to me Thanks!