Skip to content

Fix bug where literal elements of a matched tuple are type inferred separately from the arms. - #5408

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_1021279230
Nov 16, 2026
Merged

copybara-service[bot] merged 1 commit into
mainfrom
test_1021279230

Conversation

@copybara-service

Copy link
Copy Markdown

Fix bug where literal elements of a matched tuple are type inferred separately from the arms.

For example,

match (1, false) {
  (u8:1, false) => true,
  _ => false
}

would previously type the literal 1 as an auto-sized u1.

@copybara-service
copybara-service Bot force-pushed the test_1021279230 branch 2 times, most recently from 91b5ac3 to b8ae4da Compare November 14, 2026 03:19
@copybara-service
copybara-service Bot force-pushed the test_1021279230 branch 2 times, most recently from 6053c62 to de6d2fb Compare November 16, 2026 15:55
…eparately from the arms.

For example,

```
match (1, false) {
  (u8:1, false) => true,
  _ => false
}
```

would previously type the literal 1 as an auto-sized u1.

PiperOrigin-RevId: 1022852600
@copybara-service
copybara-service Bot merged commit c564c42 into main Nov 16, 2026
4 checks passed
@copybara-service
copybara-service Bot deleted the test_1021279230 branch November 16, 2026 16:55

This branch was successfully deployed

1 active deployment
github-pages — c564c42a Deployed Nov 16, 2026 by copybara-service[bot] via deploy #14432
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant