Skip to content
This repository has been archived by the owner on Sep 16, 2022. It is now read-only.

Parser crashes if named argument collides with exported symbol name #1625

Closed
leonsenft opened this issue Sep 26, 2018 · 0 comments
Closed

Parser crashes if named argument collides with exported symbol name #1625

leonsenft opened this issue Sep 26, 2018 · 0 comments

Comments

@leonsenft
Copy link
Contributor

Reproduction:

const name = 'Alice';

@Component(
  selector: 'app',
  template: '{{greet(name: "Bob")}}',
  exports: [name],
)
class AppComponent {
  String greet({String name: 'world'}) => 'Hello $name';
}
@leonsenft leonsenft changed the title Parser crashes if named arguments collides with exported symbol name Parser crashes if named argument collides with exported symbol name Sep 26, 2018
@leonsenft leonsenft self-assigned this Sep 27, 2018
alorenzen pushed a commit that referenced this issue Oct 1, 2018
The template parser will no longer crash if a named argument in a function
invocation collides with the name of an exported symbol.

Fixes #1625.

PiperOrigin-RevId: 214860587
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant