Revert change to abstract-method-with-body error location

This commit is contained in:
Iain Monro
2015-12-08 12:25:45 +00:00
parent e22863238a
commit 46f1a2cc5d
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -11175,7 +11175,7 @@ namespace ts {
// Abstract methods cannot have an implementation.
// Extra checks are to avoid reporting multiple errors relating to the "abstractness" of the node.
if (node.flags & NodeFlags.Abstract && node.body) {
error(node.body, Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract, declarationNameToString(node.name));
error(node, Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract, declarationNameToString(node.name));
}
}