Warn about void interpolation expressions
Opened this issue · 2 comments
chalin commented
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 commented
Nit: it won't be void unless you bind {{foo()}}
, but yes, agreed! Same goes for [x]="voidResult()"
chalin commented
(Right! I've fixed the example.)