spelling: against

This commit is contained in:
Josh Soref 2021-11-04 00:35:16 -04:00
parent 2ff14478f7
commit e20e8b5b84

View file

@ -1025,7 +1025,7 @@ void Unifier::tryUnifySealedTables(TypeId left, TypeId right, bool isIntersectio
// If the superTy/left is an immediate part of an intersection type, do not do extra-property check.
// Otherwise, we would falsely generate an extra-property-error for 's' in this code:
// local a: {n: number} & {s: string} = {n=1, s=""}
// When checking agaist the table '{n: number}'.
// When checking against the table '{n: number}'.
if (!isIntersection && lt->state != TableState::Unsealed && !lt->indexer)
{
// Check for extra properties in the subTy