All other types do get highlighted literally everywhere, but function returns are an exception, it seems?I’m pretty sure it’s not intended.
I think its a bug becouse even function arguments do get highlighted.
Could you post (or direct message me) more of the context of this code? Function returns should be highlighted. But I cannot find a case where they aren’t.
My best guess from the posted code is - it looks to me like the parser thinks you are calling a function named “thread” on an object returned from the “Thread” function in this snippet, rather than declaring a function named Thread returning a thread. But it’s hard to say without seeing the surrounding code.
It does not highlight any function:
local function Hello():string
return ""
end
I am experiencing the same issue. The return types used to be colored but that broke ever since the update before the most recent one. Type autofill also broke for a bunch of things
(uint is just a type alias for number, in the top i have type uint = number)
Thanks, as it turns out I couldn’t reproduce the bug because I was trying with an unreleased version of Studio that already has it fixed. I’ll reach out again when it releases to see if there’s still a problem.
the typechecker parser has been broken across the board, it doesn’t matter how explicit, how obvious a function definition is, if it were the case that the parser assumed something like
function something(param: number):object
was actually
something(param:number):object()
i.e. calling a method called "object instead of assuming object is a type, then that means its not looking for the ()
and its also ignoring the function
keyword. In the first example object
is clearly a type and not a call.
I can’t find a single line of code anywhere that has the return type highlighted on my end. Is your testing version using the same parser as the rest of us?
This should now be fixed! Types returned by a function should now receive highlights.
ye it does work now
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.