[Function builders] Test with an lvalue subject

This commit is contained in:
Doug Gregor
2020-03-03 13:54:27 -08:00
parent 36fb9c9302
commit c962e48b35

View File

@@ -593,7 +593,8 @@ testSwitch(getE(1))
// CHECK-SAME: second("just 42")
testSwitch(getE(2))
func testSwitchCombined(_ e: E) {
func testSwitchCombined(_ eIn: E) {
var e = eIn
tuplify(true) { c in
"testSwitchCombined"
switch e {