Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Variable names and library names can conflict #157

@vsmenon

Description

@vsmenon

I'm hitting an error in generated code where a local variable name is shadowing a global library name:

    instantiate(key) {
      let binding = this.injector[_getBinding](key);
      if (lang.isBlank(binding))
        return exports[_notFound];
      this.injector[_markAsConstructing](key);
      let deps = this.injector[_resolveDependencies](key, dart.as(binding, binding.Binding), true);

In particular, in:

dart.as(binding, binding.Binding)

The first binding should be the local var, and the second should be the binding library.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions