dart-archive / angular_analyzer_plugin

WORK MOVED TO dart-lang/angular repository
https://github.com/dart-lang/angular/tree/master/angular_analyzer_plugin
68 stars 13 forks source link

Fix the type of _convertStatementsBoundAttribute. #563

Closed stereotype441 closed 6 years ago

stereotype441 commented 6 years ago

The use of _convertStatementsBoundAttribute in _convertAttributes has a type error that the analyzer has been failing to detect due to https://github.com/dart-lang/sdk/issues/32305. In order to fix this analyzer bug, we need to first fix any type errors that exist in the wild.

This change fixes the type of _convertStatementsBoundAttribute to match the type expected at the use site, and adds the necessary "as" cast.