 func testInForEach4(arg: Int) {
   let local = 2
   for index in 1 ... 2 {
-    #^IN_FOR_EACH_4^#
+    #^IN_FOR_EACH_4?check=IN_FOR_EACH_3^#
   }
   let after = 4
 }
 
 func testInForEach5(arg: Int) {
   let local = 2
-  for index in [#^IN_FOR_EACH_5^#] {}
+  for index in [#^IN_FOR_EACH_5?check=IN_FOR_EACH_1^#] {}
   let after = 4
 }
 func testInForEach6(arg: Int) {
   let local = 2
-  for index in [1,#^IN_FOR_EACH_6^#] {}
+  for index in [1,#^IN_FOR_EACH_6?check=IN_FOR_EACH_2^#] {}
   let after = 4
 }
 func testInForEach7(arg: Int) {
   let local = 2
-  for index in [1:#^IN_FOR_EACH_7^#] {}
+  for index in [1:#^IN_FOR_EACH_7?check=IN_FOR_EACH_1^#] {}
   let after = 4
 }
 func testInForEach8(arg: Int) {
   let local = 2
-  for index in [#^IN_FOR_EACH_8^#:] {}
+  for index in [#^IN_FOR_EACH_8?check=IN_FOR_EACH_4^#:] {}
   let after = 4
 }
 func testInForEach9(arg: Int) {
   let local = 2
-  for index in [#^IN_FOR_EACH_9^#:2] {}
+  for index in [#^IN_FOR_EACH_9?check=IN_FOR_EACH_4^#:2] {}
   let after = 4
 // NOTE: [Convertible] to AnyHashable.
 // IN_FOR_EACH_4-NOT: Decl[LocalVar]

}

func testFindFuncParam2<Foo : FooProtocol>(fooParam: FooStruct, foo: Foo) {
  #^FIND_FUNC_PARAM_2^#
// FIND_FUNC_PARAM_2: Begin completions
// FIND_FUNC_PARAM_2-DAG: Decl[GenericTypeParam]/Local: Foo[#Foo#]{{; name=.+$}}
// FIND_FUNC_PARAM_2-DAG: Decl[LocalVar]/Local:         foo[#FooProtocol#]{{; name=.+$}}


init() {
  var fooParam = FooStruct()
  #^IN_INVALID_1?check=COMMON^#
}

init { // Missing parameters
  var fooParam = FooStruct()
  #^IN_INVALID_2?check=COMMON^#
}

deinit {
  var fooParam = FooStruct()
  #^IN_INVALID_3?check=COMMON^#
}

func testInInvalid5() {
  var fooParam = FooStruct()
  init() {
    #^IN_INVALID_5?check=COMMON^#
  }
}

func testInInvalid6() {
  deinit {
    var fooParam = FooStruct()
    #^IN_INVALID_6?check=COMMON^#
  }
}

struct TestInInvalid7 {
  deinit {
    var fooParam = FooStruct()
    #^IN_INVALID_7?check=COMMON^#
  }
}

func foo() -> Undeclared {
  var fooParam = FooStruct()
  #^IN_INVALID_8?check=COMMON^#
}
// MY_ALIAS_1: Decl[TypeAlias]/Local:                        MyAlias[#(T, T)#];
// MY_ALIAS_1: Decl[LocalVar]/Local/TypeRelation[Identical]: x[#MyAlias<Int>#]; name=x
