while using
type Success = {Code: "Success", Success: true, Data: any}
type Lock = {Code: "Locked", Success: false, Lock: string}
type Error = {Code: "Error", Success: false, Message: string}
local value = {} :: Success | Lock | Error
autocomplete is a bit finicky
here we can see it only shows Code as being "Success" when it should be "Error" | "Locked" | "Success"
inside a if check it works correctly
but only if there is no code after for example simply having then or end after prevents auto complete from showing
here is another example
but if i remove the end then it starts working
luau type engine seams to be working correctly but the problem seams to be on studios side
even a tab character after "" will prevent the popup from showing
Expected behavior
- tooltips should show tagged unions correctly
- if checks should still list valid unions even if there is code after
""




