witchiest
witchiest
Stylua should be able to sort variables in this manner, as what styluas current sort requires/services produces is not that great. It would also be great if this was extended...
The following code only throws the type error "setmetatable should take a table", only when the export variable is not annotated or tbl in the setmetatable is cast to any...
```lua local tbl= {} :: { [string]: boolean } tbl.meow = true tbl.meow = nil -- TypeError: Type 'nil' could not be converted into 'boolean' ```
With the code below when using the __call metamethod instead of export.retry, all of the generics get infered to the self type of unknown, when it would be expected for...
the following code errors with ```luau local roblox = require("@lune/roblox") game = roblox.Instance.new("DataModel") ``` ``` thread 'main' panicked at crates\lune-roblox\src\instance\registry.rs:44:17: cannot mutably borrow app data container ```
The following code does technically include a recursive type, with it working fine if I manually type out the methods rather than using `BaseLoggerMethod` in the new solver. But this...
In the following code the types for the functions arguments should already be defined, but are instead infered by the new solver ```luau type VaradicParserPrototype = { __call: (self: VaradicParser,...
```luau -- Players is also inferred as any as of writing, but im assuming this is roblox's types not being defined correctly as Instance.new("Part") is -- inferred as Part and...
```luau -- props is inferred as { Shape: Enum.PartType } when it should be more akin to { ["Shape" | "CFrame"]: CFrame | Enum.PartType } local function create_part( props: {...
Here I have a function for parsing a date included in a git log: ```luau local GIT_DATE_FORMAT = "(%w+) (%w+) (%d+) (%d+):(%d+):(%d+) (%d+) ([?%+%-]%d%d)(%d%d)" local MONTHS = table.freeze({ Jan =...