mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Fix call to Debug.fail in compiler
This commit is contained in:
1 parent
51dcce2124
commit
59b76cee89
1 file changed
+1
-2
@@ -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.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user