test: Add a test for mismatched types of if branches

This commit is contained in:
Brian Anderson 2011-05-21 17:51:19 -04:00
parent e24d7ae967
commit 4bcdf57d78

View File

@ -0,0 +1,9 @@
// error-pattern:mismatched types
fn main() {
auto x = if (true) {
10
} else {
10u
};
}