d5bd015cac
Actually, for `Expect.fail`, the return type is kept as `void`, as changing this to `Never` would apparently change a lot of static analysis of language and co19 tests. It seems the `@alwaysThrows` annotation is no longer (or was never) relied upon for static analysis (usually around dead code analysis). Bug: https://github.com/dart-lang/sdk/issues/49583 Change-Id: I6d9daaa1d290ab0322a529faaf9574fe83b9cd25 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/279742 Commit-Queue: Samuel Rawlins <srawlins@google.com> Reviewed-by: Alexander Aprelev <aam@google.com>