Add a test for match flattening

This commit is contained in:
Ivan Molodetskikh
2018-09-11 08:31:35 +03:00
parent bc03234e25
commit f116baeed7
2 changed files with 44 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
fn main() {
match option {
None => if condition {
true
} else {
false
},
}
}
fn main() {
match option {
None => {
if condition {
true
} else {
false
}
}
}
}
+23
View File
@@ -0,0 +1,23 @@
fn main() {
match option {
None => {
if condition {
true
} else {
false
}
}
}
}
fn main() {
match option {
None => {
if condition {
true
} else {
false
}
}
}
}