Type function cannot reference a declared type anymore

OS: Windows 10 64bit
Studio Version: Version 0.714.0.7141089 (64bit)

When I reference a declared type from a type function code, they are simply all nil.

type DeclaredType = number

type function Fn(): type
  print(DeclaredType)
  return DeclaredType
end

type Result = Fn<> -- prints 'nil'

Expected behavior

They shouldn’t be referenced as nil and they used to work well before.

Hello! Agreed that is very strange, and should definitely work the way you expect. We will try to dig into this soon and get back to you.

1 Like

Seems like this bug has been fixed in the latest Roblox Studio version? thanks!