Skip to content

Commit 2b899f1

Browse files
author
Arthur Ozga
committed
simplified check
1 parent f3278e2 commit 2b899f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10416,7 +10416,7 @@ module ts {
1041610416
}
1041710417

1041810418
// Non-ambient classes cannot merge with interfaces.
10419-
if (!(node.flags & NodeFlags.Ambient) && getDeclarationOfKind(symbol, SyntaxKind.InterfaceDeclaration)) {
10419+
if (!(node.flags & NodeFlags.Ambient) && symbol.flags & SymbolFlags.Interface) {
1042010420
error(node, Diagnostics.A_non_ambient_class_cannot_be_merged_with_an_interface)
1042110421
}
1042210422

0 commit comments

Comments
 (0)