Skip to content

Commit 36123a7

Browse files
committed
Update a test case
1 parent 759d1dd commit 36123a7

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

test/IDE/complete_skipbody.swift

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,19 @@ func test(valueOptOpt: MyStruct??) {
3535

3636
if (value.x == 1) {
3737
let unrelated2 = FORBIDDEN_Struct()
38-
_ = value.#^FUNCTIONBODY^#
38+
switch value.x {
39+
case let x where x < 2:
40+
let unrelated3 = FORBIDDEN_Struct()
41+
if x == value.#^FUNCTIONBODY^# {}
42+
default:
43+
break
44+
}
3945
}
4046
}
4147

4248
let globalValue = globalValueOpt!
4349

44-
let FORBIDDEN_localVar = 1
50+
let FORBIDDEN_globalVar = 1
4551

4652
switch glovalValue.x {
4753
case let x where x < 2:

0 commit comments

Comments
 (0)