Autocomplete doesn't show for type functions that return a union of string singletons

If you assign a variable’s type as a type function that returns a union of string singletons, auto complete does not show. This does not occur for union types that aren’t returned from a type function. This occurs in a baseplate with no other scripts.

--!strict 

type function test(ty: type)
	return types.unionof(types.singleton('test'), types.singleton('test2'))
end

type test2 = 'test' | 'test2'

local a: test<number> = 'test' -- autocomplete does not show up when adding quotes or filling the word "test" in
local b: test2 = 'test' -- autocomplete does show up

Specs:
RTX 5090
Ryzen 7 7800X3D
64GB DDR5 @ 6000MHz

Beta features:
Animation graph, CreateAssetAsync, face capture, glTF Export, improved CSG controls, live animation creator, new studio camera controls, video API, party simulator, revamped asset manager, scripts are nonstrict by default, segment by parts, styling transitions, texture generator, video uploads

1 Like

Hello, thanks for sharing this report! A fix is in the works and should be released soon!

1 Like