     scope.deferred = []
     scope.deferredBindings = []
     scope.boundTypeVariables = newSet()
-    scope.exportedNames = []
+    scope.exportedNames = newSet()
     scope.classes = newMap()
     scope.typeNames = newMap()
     scope.typeAliases = newMap()


  isRequesting: ->
    @_requesting

  markMalformed: ->
    @isMalformed = yes

          declareImported ctx, name
      else
        malformed ctx, arg, 'Name required'
  irImport moduleName, (setToArray requiredNames), moduleNameAtom

resolveModuleName = (ctx, declaredModuleName) ->
  modulePathToName (resolveModulePathFrom ctx.typedModulePath.names,
      (moduleNameToPath declaredModuleName))

resolveModulePathFrom = (currentPath, declaredPath) ->
  switch _fst declaredPath
    when '.' then join currentPath, declaredPath[1...]
    when '..' then join currentPath[...-1], declaredPath[1...]
    else declaredPath

declareImportedByDefault = (ctx, modules) ->
  for moduleName, names of values modules
