Can you share the code for this? It’s definitely surprising that showed up as i haven’t seen it before. Also pinging @richard, maybe some edge case we need to emit ; to disambiguate?
Can you send your code?
Here it is!
Fixed!!! Kind of…
This code works perfectly but I’m still wondering what that
; expected meant…
Hm, I’m not seeing the same error; when I load up that project I get
(here’s a non persistent link at this point: https://makecode.com/_LTpHH4Mi94YP)
It looks like the parameter array type inference does a good job, but then it doesn’t fully propagate to
list; this would have caused an error either way though as list is not defined. Trying to define list as an empty array does allow an error that is a little gnarly though:
which comes from it emitting as
When I pass in an array of text like in the original image it just works:
There’s definitely something that could be improved / fixed here in order to pass up the type info we ‘know’, and I’d be very curious to see if anyone has a link to something that shows that
';' expected. error
Odd. Must be my side then!
Happy b day Joey
Oh woah I didn’t realize! Happy birthday!!!