With typed Lua beta turned on, putting this code into a script creates two script analysis errors:
local foo: RBXScriptConnection = game.Changed:Connect(function() end)
foo:Disconnect()
Removing the type annotation from foo
causes the errors to stop, which is a quick fix for that particular problem, but a simple guard causes the errors to reappear:
This occurs in Studio version 0.443.0.409841
.