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!!!