Type 'true' could not be converted into 'false'

I came across a strange issue today saying that “Type ‘true’ could not be converted into ‘false’” in strict mode.

I am using the Luau type checker beta and --!strict mode.

Code sample:

export type CharacterReplicationServer = {
	_started: boolean;
} & typeof(CharacterReplicationServer)

function CharacterReplicationServer.Start(self: CharacterReplicationServer)
	if self._started == true then
		return
	end
	
	self._started = true
end

Expected behavior

I expected no luau typechecker warning.

A private message is associated with this bug report

1 Like

(post deleted by author)