Uh.. What?


Yeah, no clue where that semicolon wants to be.

2 Likes

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?

1 Like

Can you send your code?

Here it is!

2 Likes

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

image

(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:

image
which comes from it emitting as
image

When I pass in an array of text like in the original image it just works:

image

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

3 Likes

Odd. Must be my side then!

Happy b day Joey

3 Likes

Oh woah I didn’t realize! Happy birthday!!! :partying_face: :confetti_ball: :tada:

1 Like