<p dir="auto">The code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import {Dispatcher as BaseDispacther} from 'flux';

class Dispatcher extends BaseDispacther {

}"><pre class="notranslate"><code class="notranslate">import {Dispatcher as BaseDispacther} from 'flux';

class Dispatcher extends BaseDispacther {

}
</code></pre></div>
<p dir="auto">Results in:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/Users/andreypopp/Workspace/gang/node_modules/6to5/bin/6to5/util.js:35
      throw e;
            ^
TypeError: ./test.js: Line 1: Duplicate declaration &quot;Dispatcher&quot;
&gt; 1  | import {Dispatcher as BaseDispacther} from 'flux';
     |         ^
  2  | 
  3  | class Dispatcher extends BaseDispacther {
  4  | 
    at File.errorWithNode (~/6to5/lib/6to5/transformation/file.js:333:13)
    at Scope.checkBlockScopedCollisions (~/6to5/lib/6to5/traversal/scope.js:145:21)
    at Scope.registerBinding (~/6to5/lib/6to5/traversal/scope.js:299:10)
    at Scope.registerDeclaration (~/6to5/lib/6to5/traversal/scope.js:277:10)
    at TraversalPath.functionVariableVisitor.enter (~/6to5/lib/6to5/traversal/scope.js:341:44)
    at TraversalPath.call (~/6to5/lib/6to5/traversal/path.js:115:24)
    at TraversalPath.visit (~/6to5/lib/6to5/traversal/path.js:136:8)
    at TraversalContext.visitNode (~/6to5/lib/6to5/traversal/context.js:24:20)
    at TraversalContext.visit (~/6to5/lib/6to5/traversal/context.js:41:26)
    at Function.traverse.node (~/6to5/lib/6to5/traversal/index.js:38:17)"><pre class="notranslate"><code class="notranslate">/Users/andreypopp/Workspace/gang/node_modules/6to5/bin/6to5/util.js:35
      throw e;
            ^
TypeError: ./test.js: Line 1: Duplicate declaration "Dispatcher"
&gt; 1  | import {Dispatcher as BaseDispacther} from 'flux';
     |         ^
  2  | 
  3  | class Dispatcher extends BaseDispacther {
  4  | 
    at File.errorWithNode (~/6to5/lib/6to5/transformation/file.js:333:13)
    at Scope.checkBlockScopedCollisions (~/6to5/lib/6to5/traversal/scope.js:145:21)
    at Scope.registerBinding (~/6to5/lib/6to5/traversal/scope.js:299:10)
    at Scope.registerDeclaration (~/6to5/lib/6to5/traversal/scope.js:277:10)
    at TraversalPath.functionVariableVisitor.enter (~/6to5/lib/6to5/traversal/scope.js:341:44)
    at TraversalPath.call (~/6to5/lib/6to5/traversal/path.js:115:24)
    at TraversalPath.visit (~/6to5/lib/6to5/traversal/path.js:136:8)
    at TraversalContext.visitNode (~/6to5/lib/6to5/traversal/context.js:24:20)
    at TraversalContext.visit (~/6to5/lib/6to5/traversal/context.js:41:26)
    at Function.traverse.node (~/6to5/lib/6to5/traversal/index.js:38:17)
</code></pre></div>
<p dir="auto">I've just updated to 3.6.0. The following gives the error "duplicate declaration", but Is it intended?</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import {A as A_} from 'module';

class A {
}"><pre class="notranslate"><code class="notranslate">import {A as A_} from 'module';

class A {
}
</code></pre></div>
<p dir="auto">This is a little continuation of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="57411260" data-permission-text="Title is private" data-url="https://github.com/babel/babel/issues/759" data-hovercard-type="issue" data-hovercard-url="/babel/babel/issues/759/hovercard" href="https://github.com/babel/babel/issues/759">#759</a>, sorry if it's a rather obvious issue, I'm not super-familiar with the spec.</p>