Fix call to Debug.fail in compiler

This commit is contained in:
Anders Hejlsberg 2019-09-15 08:38:17 -07:00
parent 51dcce2124
commit 59b76cee89

View File

@ -31531,8 +31531,7 @@ namespace ts {
const nameType = checkComputedPropertyName(name);
return isTypeAssignableToKind(nameType, TypeFlags.ESSymbolLike) ? nameType : stringType;
default:
Debug.fail("Unsupported property name.");
return errorType;
return Debug.fail("Unsupported property name.");
}
}