mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
2e7e935b02
Closure Compiler cannot infer that the swtich statement is exhaustive, which causes it to complain that the method does not always return a value. Work around the problem by throwing an exception in the default case, and using the `: never` type to ensure the code is unreachable.