diff --git a/modules/angular2/src/compiler/html_parser.ts b/modules/angular2/src/compiler/html_parser.ts
index 56b522f559..0bd124cbe4 100644
--- a/modules/angular2/src/compiler/html_parser.ts
+++ b/modules/angular2/src/compiler/html_parser.ts
@@ -150,7 +150,7 @@ class TreeBuilder {
// parse everything in between { and }
let parsedExp = new TreeBuilder(exp).build();
if (parsedExp.errors.length > 0) {
- this.errors = this.errors.concat(parsedExp.errors);
+ this.errors = this.errors.concat(parsedExp.errors);
return;
}
diff --git a/modules/angular2/src/compiler/legacy_template.ts b/modules/angular2/src/compiler/legacy_template.ts
index d26b9e8ac1..3a58f7c7a1 100644
--- a/modules/angular2/src/compiler/legacy_template.ts
+++ b/modules/angular2/src/compiler/legacy_template.ts
@@ -88,7 +88,8 @@ export class LegacyHtmlAstTransformer implements HtmlAstVisitor {
visitExpansion(ast: HtmlExpansionAst, context: any): any {
let cases = ast.cases.map(c => c.visit(this, null));
- return new HtmlExpansionAst(ast.switchValue, ast.type, cases, ast.sourceSpan);
+ return new HtmlExpansionAst(ast.switchValue, ast.type, cases, ast.sourceSpan,
+ ast.switchValueSourceSpan);
}
visitExpansionCase(ast: HtmlExpansionCaseAst, context: any): any { return ast; }