You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(compiler-cli): extended diagnostics not validating ICUs (#57845)
The visitor that all extended diagnostics are based on hadn't implemented the `visitIcu` method which meant that it wasn't detecting any code inside of them.
Fixes#57838.
PR Close#57845
Copy file name to clipboardExpand all lines: packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/unused_let_declaration/unused_let_declaration_spec.ts
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -108,5 +108,14 @@ runInEachFileSystem(() => {
108
108
109
109
expect(diags.length).toBe(0);
110
110
});
111
+
112
+
it('should not report a @let declaration that is only used in an ICU',()=>{
113
+
constdiags=diagnose(`
114
+
@let value = 1;
115
+
<h1 i18n>{value, select, 1 {one} 2 {two} other {other}}</h1>
0 commit comments