angular/packages/compiler/test
Matthieu Riegler 8bc31a515f feat(core): Allow other expression for exhaustive typechecking
When the switched expression is nested within a union, exhaustive typechecking needs to know which expression to check.
This change adds the possibility of specifying the expression to check:

```
@Component({
  selector: 'app-root',
  imports: [],
  template: `
    @switch (state.mode) {
      @case ('show') { {{ state.menu }}; }
      @case ('hide') {}
      @default never(state);
    }
  `,
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class App {
  state!: { mode: 'hide' } | { mode: 'show'; menu: number };;
}
```

fixes #67406
2026-03-24 14:42:28 -07:00
..
expression_parser fix(compiler): throw on invalid in expressions 2026-02-23 13:35:07 -08:00
i18n build: update Jasmine to 6.0.0 2026-02-09 12:15:57 -08:00
ml_parser feat(core): Allow other expression for exhaustive typechecking 2026-03-24 14:42:28 -07:00
output refactor(compiler): clean up unused parameter 2026-03-18 14:05:18 -06:00
render3 fix(compiler): prevent mutation of children array in RecursiveVisitor 2026-03-04 14:41:32 -08:00
schema fix(compiler): disallow translations of iframe src 2026-03-12 11:01:26 -06:00
selector refactor(compiler): remove zone-based testing utilities 2026-02-09 07:55:12 -08:00
shadow_css fix(compiler): prevent shimCssText from adding extra blank lines per CSS comment 2026-03-20 15:17:31 -07:00
BUILD.bazel test(compiler): remove zone-based testing utilities 2026-02-05 16:56:55 -08:00
compiler_facade_interface_spec.ts docs: set syntax highlighting of code examples MD code blocks (#59026) 2024-12-04 17:30:28 +01:00
integration_spec.ts test(compiler): remove zone-based testing utilities 2026-02-05 16:56:55 -08:00
style_url_resolver_spec.ts refactor(compiler): convert scripts within packages/compiler to relative imports (#60625) 2025-04-01 11:57:53 +00:00
util_spec.ts refactor(compiler): remove unused code (#61668) 2025-05-26 12:21:09 +00:00