Skip to content

Commit 4bcdf57

Browse files
committed
test: Add a test for mismatched types of if branches
1 parent e24d7ae commit 4bcdf57

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// error-pattern:mismatched types
2+
3+
fn main() {
4+
auto x = if (true) {
5+
10
6+
} else {
7+
10u
8+
};
9+
}

0 commit comments

Comments
 (0)