centau

Results 6 issues of centau

In module RDL: ![image](https://user-images.githubusercontent.com/83140718/149047472-79c663e9-fc1c-430f-bea3-b0522fbf6076.png) In script: ![image](https://user-images.githubusercontent.com/83140718/149047764-9c0e2b44-c257-4b8c-97e0-93bdf548d50b.png) LSP infers the field `Test` as being of type `any` despite it being defined as a function when the functions return value is...

bug

Syntax highlighter doesn't recognise intersection `&` and union `|` type operators or recognises type names that come after the operator when declaring variables (e.g `local x: string | number`, `number`...

enhancement

The typechecker seems to be unable to infer the types of variables declared in the `for ... in` list when using generalized iteration with the `__iter` metamethod defined. ![image](https://user-images.githubusercontent.com/83140718/214981465-4938d745-aff9-4c0f-a6b2-965713310d35.png)

bug
prioritized
fixed by new solver

![image](https://github.com/Roblox/luau/assets/83140718/397e52b2-68dc-4b9e-bb61-664de748efe4) source: ```lua type Color = "Red" | "Green" | "Blue" local t: { color: Color } local color = t.color ```

bug
fixed by new solver

Came across a very odd type error in my codebase, managed to create a minimal reproduction below: ![image](https://user-images.githubusercontent.com/83140718/236710256-fd775358-f3b0-4cec-b2f4-d963821e523f.png) Changing the `Bar` type so that the metatable field is not casted...

bug
icebox
fixed by new solver

Screenshots below demonstrate the bug: ![image](https://user-images.githubusercontent.com/83140718/229602553-d91998bc-78eb-4290-86a2-153027cac8dc.png) ![image](https://user-images.githubusercontent.com/83140718/229604384-25df90be-7a71-4f3f-b002-0b3a84d9678f.png) Source: ```lua type Foo = typeof(setmetatable( {} :: { Bar: false }, {} :: {} )) local foo: Foo = setmetatable({ Bar =...

bug