Skip to content

function and lexical bindings do not conflict at the top level of functions #444

Description

@bakkot
'use strict';
function f(){
  let a;
  function a(){}
}

parses without error. It should not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions