As of version 0.632, the following code crashes Studio to desktop with no message when showing completions for properties on self
, regardless of the typechecking directive (--!strict
etc) being used:
--!strict
local Class = {}
Class.__index = Class
export type Class = typeof(setmetatable({}, Class))
local Inherited = {}
Inherited.__index = Inherited
type Inherited = typeof(setmetatable({}, Inherited)) & Class
setmetatable(Inherited, Class)
type tUnion = Inherited | {'h'}
local OtherClass = {}
OtherClass.__index = OtherClass
type self = {field: tUnion}
export type OtherClass = typeof(setmetatable({}::self, OtherClass))
function OtherClass.finaliseFrame(self:OtherClass): ()
table.clear(self.field) --crashes when changed
end
Repro file:
solverCrashTest.rbxl (40 KB)
A private message is associated with this bug report