simplified check

This commit is contained in:
Arthur Ozga
2015-06-03 14:05:18 -07:00
parent f3278e2f0f
commit 2b899f129a

View File

@@ -10416,7 +10416,7 @@ module ts {
}
// Non-ambient classes cannot merge with interfaces.
if (!(node.flags & NodeFlags.Ambient) && getDeclarationOfKind(symbol, SyntaxKind.InterfaceDeclaration)) {
if (!(node.flags & NodeFlags.Ambient) && symbol.flags & SymbolFlags.Interface) {
error(node, Diagnostics.A_non_ambient_class_cannot_be_merged_with_an_interface)
}