This commit is contained in:
Daniel Rosenwasser
2015-11-06 15:00:35 -08:00
parent d234b8df2e
commit c011ed455b
+1 -1
View File
@@ -10403,7 +10403,7 @@ namespace ts {
function checkStringLiteralExpression(node: StringLiteral): Type {
// TODO (drosen): Do we want to apply the same approach to no-sub template literals?
let contextualType = getContextualType(node);
const contextualType = getContextualType(node);
if (contextualType && contextualTypeIsStringLiteralType(contextualType)) {
return getStringLiteralType(node);
}