Add merging tests

This commit is contained in:
Andy Hanson
2016-06-03 06:45:00 -07:00
parent 1541ebe781
commit ed6bfcdb08
9 changed files with 98 additions and 1 deletions
-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