Skip to content

Commit 0d8951f

Browse files
Brooooooklynclaude
andcommitted
test(directive): cover && / || in @Input / @Output arguments and helper-returned transforms
`@Input(LOCAL || NAME)`, `@Input({alias: LOCAL || NAME, required: true || FLAG})`, `@Output(LOCAL || NAME)` and `transform: 0 || booleanAttribute` now compile like ngtsc (the evaluator fix at the bottom of the stack). Also pins `@Input(opts({t: booleanAttribute}))`, which emits `booleanAttribute` through the reference identity this PR adds. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent 2b04ec5 commit 0d8951f

2 files changed

Lines changed: 341 additions & 1 deletion

File tree

‎crates/oxc_angular_compiler/tests/decorator_metadata_ngtsc_test.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ fn decorator_metadata_matches_ngtsc() {
307307
failures.len(),
308308
failures.join("\n\n")
309309
);
310-
assert_eq!(compared, 902, "fixtures compared");
310+
assert_eq!(compared, 922, "fixtures compared");
311311
}
312312

313313
fn transform(source: &str) -> TransformResult {

0 commit comments

Comments
 (0)