--[=[
	Checks if the given object is a Symbol an in the given scope

	@param obj any -- Anything
	@param scope Symbol -- Scope symbol
	@return boolean -- Returns `true` if the `obj` parameter is a Symbol and in the given scope
]=]

function Symbol.IsInScope(obj: any, scope: Symbol): boolean
	return Symbol.Is(obj) and obj._scope == scope
end


function Symbol:__tostring()
	return ("Symbol<%s>"):format(self._id)
end


export type Symbol = typeof(Symbol.new("Test", nil))


return Symbol
