Skip to content

Emit for as operator drops nested module prefix #5524

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
NoelAbrahams opened this issue Nov 4, 2015 · 1 comment
Closed

Emit for as operator drops nested module prefix #5524

NoelAbrahams opened this issue Nov 4, 2015 · 1 comment
Labels
Duplicate An existing issue was already created

Comments

@NoelAbrahams
Copy link

Hi,

Version: TS 1.6

module foo.bar {
    export function baz(){}
};

module foo {
  const a1 = bar['baz']; // foo.bar['baz']
  const a2 = (<any>bar)['baz']; // foo.bar['baz']
  const a3 = (bar as any)['baz'];  // bar['baz']
}

The emit for a3 appears to be wrong.

@mhegazy
Copy link
Contributor

mhegazy commented Nov 4, 2015

looks like a duplicate of #4832. This should be fixed in typescript@next.

@mhegazy mhegazy closed this as completed Nov 4, 2015
@mhegazy mhegazy added the Duplicate An existing issue was already created label Nov 4, 2015
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

2 participants