So, i was writing debug utility and suddenly strange warn line (or how does it called) from type-checking appeared.
function DEBUG_UTILITY:DRAW_TAG_QUICK(DISPLAY_TAG : string, VALUE : any, LIFETIME : number)
-- code for tracebacking.
DEBUG_UTILITY:DRAW_TAG(`{THREAD}:{LINE_NUMBER}:{DISPLAY_TAG}`, DISPLAY_PATH, VALUE, LIFETIME or 0.2, tonumber(LINE_NUMBER))
end
function DEBUG_UTILITY:DRAW_TAG(DISPLAY_TAG : string, DISPLAY_PATH : string, VALUE : any, LIFETIME : number, LINE_NUMBER : number)
-- LIFETIME works without any issues.
end
and another function:
function DEBUG_UTILITY:DRAW_LINE(DISPLAY_TAG : string, LIFETIME : number?, ZINDEX : number?, LINE_COLOR : Color3?, THICKNESS : number?, DIRECTION : Vector3, ORIGIN : Vector3, ORIGIN_TEXT : string?, TARGET_TEXT : string?)
if not DEBUG_ENABLED then
return
end
if IS_SERVER and CurrentCamera.ViewportSize.Magnitude < 10 then
return
end
LINE_COLOR = LINE_COLOR or Color3.new()
LIFETIME = LIFETIME or 0.2
ZINDEX = ZINDEX or 1
THICKNESS = THICKNESS or 1.5
ORIGIN_TEXT = ORIGIN_TEXT or ``
TARGET_TEXT = TARGET_TEXT or ``
if DEBUG_CONFIGURATION.DEBUG_LINES_AS_TAGS then
-- traceback
DEBUG_UTILITY:DRAW_TAG(`{THREAD}:{LINE_NUMBER}:{DISPLAY_TAG}`, DISPLAY_PATH, ORIGIN, LIFETIME, tonumber(LINE_NUMBER))
end
Has anyone encountered this and managed to fix it?

