melindatrace

Results 9 issues of melindatrace

Luau on May 2022 received an [update](https://devforum.roblox.com/t/luau-recap-may-2022/1818869) which implemented [generalized iteration](https://luau-lang.org/syntax#generalized-iteration). Generalized iteration no longer requires developers to write `pairs` or `ipairs`. From my knowledge, roblox-ts has only one way...

I expect `GetValidRandomNumber` to return `number` because the while loop will never exit unless the number is returned, but the solver infers that it returns `number?`. ```luau local function IsValid(x)...

bug
new solver

```luau local N = 100 local ArrayA = table.create(N) -- {nil} INCORRECT for i = 1, N do ArrayA[i] = 64 -- TypeError: Type 'number' could not be converted into...

bug
new solver

This issue only seems to occur for `Vector3`, `Vector2`, `CFrame`, and other Roblox data types, but not for Luau primitive data types. ```luau local function FuncA(): { Value: Vector3? }...

bug
new solver

I have a `Main` function that will be called twice, and the second time it gets called it will print `64`. However the type solver throws unclear type error. ```luau...

bug
new solver

The new type solver throws type error with unclear message when return type is optional and the return keyword is used without a value. ```luau function RandBool(): boolean? if math.random()...

bug
new solver

### Describe the bug Attempting to use `structuredClone` on any stateful object will result in an error with zero indication of a problem before running the code in both JavaScript...

needs discussion

```luau type Form = "do-not-register" | (() -> ()) local function observer(register: () -> Form) end observer(function() if math.random() > 0.5 then return "do-not-register" -- TypeError: Type 'string' could not...

bug
new solver

I expect that variable `b` to be inferred as `number`, because that's what the `T` is. ```luau --!strict type Value = { kind: "value", value: T } local function peek(state:...

bug
new solver