Skip to content
This repository has been archived by the owner on Jun 20, 2019. It is now read-only.

Warn about void interpolation expressions #552

Open
chalin opened this issue Apr 13, 2018 · 2 comments
Open

Warn about void interpolation expressions #552

chalin opened this issue Apr 13, 2018 · 2 comments

Comments

@chalin
Copy link

chalin commented Apr 13, 2018

IMHO, an issue should be reported by the analyzer when the static type of an interpolated expression is void as in the following example:

@Component(
  selector: 'example',
  template: '{{foo()}}',
)
class C {
  void foo() {}
}

cc @kwalrath

@MichaelRFairhurst
Copy link
Contributor

MichaelRFairhurst commented Apr 17, 2018

Nit: it won't be void unless you bind {{foo()}}, but yes, agreed! Same goes for [x]="voidResult()"

@chalin
Copy link
Author

chalin commented Apr 17, 2018

(Right! I've fixed the example.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

2 participants