Reproduction Steps
- Run this:
local RunService = game:GetService("RunService")
local function Render(delta)
local function test(arg)
print(arg, typeof(arg))
print(arg * 2)
end
test("abc")
end
RunService:BindToRenderStep("Render", Enum.RenderPriority.Last.Value, Render)
--Render()
- Studio will show this error:
-
Pause the mouse over the “arg” (line 4). It will show the content of the argument as a
function
:
-
Now comment line 11 (RunService) and uncomment line 12 (Render) and run again. It will show this error:
-
Repeat step 3 and it will show the correct argument value:
Expected Behavior
Show the correct argument value
Actual Behavior
Studio shows the argument as function
Issue Area: Studio
Issue Type: Other
Impact: Moderate
Frequency: Constantly