Type check the expression of the 'with' statement

This commit is contained in:
Jason Freeman
2014-07-22 13:37:37 -07:00
parent 8cbe88b501
commit f79cba2225
4 changed files with 12 additions and 3 deletions

View File

@@ -5195,6 +5195,7 @@ module ts {
}
function checkWithStatement(node: WithStatement) {
checkExpression(node.expression);
error(node.expression, Diagnostics.All_symbols_within_a_with_block_will_be_resolved_to_any);
}