Tagged unions no longer autocomplete

I’m pretty sure tag unions used to autocomplete, but it doesn’t seem like it anymore. This only happens with the incremental typechecking beta feature enabled.

Here’s an example straight from the official Luau site:

As you can see, it seems like the tagged union does not autocomplete, but it seems to warn correctly. This still happens in the latest version on a new baseplate.

Expected behavior

Typechecks as normal.

Thanks for the report! Incremental typechecking for autocomplete definitely has some behavior regressions right now that we’re working to fix. I’ve forwarded this on to the engineer working on this feature.

1 Like