Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Free type pack is escaping its module with LemonSignal library #1576

Open
imnerolin opened this issue Dec 19, 2024 · 0 comments
Open

Free type pack is escaping its module with LemonSignal library #1576

imnerolin opened this issue Dec 19, 2024 · 0 comments
Labels
bug Something isn't working new solver This issue is specific to the new solver.

Comments

@imnerolin
Copy link

imnerolin commented Dec 19, 2024

image
No clue what this means but it told me to report it here.

Relevant code:

--!strict

local Class = {}
Class.__index = Class

-->>	Includes
local Signal = require(script.Parent.Signal) -- https://github.com/Data-Oriented-House/LemonSignal

-->>	Types
export type Class = typeof(setmetatable({} :: ClassStruct, Class))
type ClassStruct = {
	signal: Signal.Signal<number>,
}

-->>	Public
function Class.new(interval: number): Class
	local self = setmetatable({
		signal = Signal.new()
	}, Class)
	return self
end

-- ENTIRE function body has the error, including comments (not including header or 'end')
-- TypeError: Free type pack is escaping its module, please report this error
function Class.Connect(self: Class, callback: (number) -> ())
	return self.signal:Connect(callback)
end

-->>
return Class
@imnerolin imnerolin added the bug Something isn't working label Dec 19, 2024
@aatxe aatxe added the new solver This issue is specific to the new solver. label Dec 19, 2024
@aatxe aatxe changed the title [NEW SOLVER] 'Free type pack is escaping its module' Free type pack is escaping its module with LemonSignal library Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working new solver This issue is specific to the new solver.
Development

No branches or pull requests

2 participants