Add merging tests

This commit is contained in:
Andy Hanson committed 2016-06-03 06:45:00 -07:00
1 parent 1541ebe781
commit ed6bfcdb08
9 files changed
+98 -1

No files matched your search

-1
View File
@@ -380,7 +380,6 @@ namespace ts {
}
function mergeSymbol(target: Symbol, source: Symbol) {
//TODO: how to merge w/ shorthand ambient module?
if (!(target.flags & getExcludedSymbolFlags(source.flags))) {
if (source.flags & SymbolFlags.ValueModule && target.flags & SymbolFlags.ValueModule && target.constEnumOnlyModule && !source.constEnumOnlyModule) {
// reset flag when merging instantiated module into value module that has only const enums