42
42
// RUN: %target-swift-ide-test(mock-sdk: %clang-importer-sdk) -code-completion -source-filename %s -code-completion-token=INSIDE_CATCH_ERR_DOT1 | %FileCheck %s -check-prefix=ERROR_DOT
43
43
// RUN: %target-swift-ide-test(mock-sdk: %clang-importer-sdk) -code-completion -source-filename %s -code-completion-token=INSIDE_CATCH_ERR_DOT2 | %FileCheck %s -check-prefix=ERROR_DOT
44
44
// RUN: %target-swift-ide-test(mock-sdk: %clang-importer-sdk) -code-completion -source-filename %s -code-completion-token=INSIDE_CATCH_ERR_DOT3 | %FileCheck %s -check-prefix=NSERROR_DOT
45
- // RUN : %target-swift-ide-test(mock-sdk: %clang-importer-sdk) -code-completion -source-filename %s -code-completion-token=INSIDE_CATCH_ERR_DOT4 | %FileCheck %s -check-prefix=INT_DOT
45
+ // RUNFIXME : %target-swift-ide-test(mock-sdk: %clang-importer-sdk) -code-completion -source-filename %s -code-completion-token=INSIDE_CATCH_ERR_DOT4 | %FileCheck %s -check-prefix=INT_DOT
46
46
47
47
// RUN: %target-swift-ide-test(mock-sdk: %clang-importer-sdk) -code-completion -source-filename %s -code-completion-token=TOP_LEVEL_INSIDE_CATCH1 > %t.top_level_inside_catch1
48
48
// RUN: %FileCheck %s -check-prefix=STMT < %t.top_level_inside_catch1
@@ -71,10 +71,10 @@ func getNSError() -> NSError { return NSError(domain: "", code: 1, userInfo: [:]
71
71
func test001( ) {
72
72
do { } catch #^CATCH1 ^#
73
73
74
- // CATCH1-DAG: Decl[Enum]/CurrModule/TypeRelation[Convertible] : Error4[#Error4#]; name=Error4{{$}}
75
- // CATCH1-DAG: Decl[Class]/CurrModule/TypeRelation[Convertible] : Error3[#Error3#]; name=Error3{{$}}
76
- // CATCH1-DAG: Decl[Class]/CurrModule/TypeRelation[Convertible] : Error2[#Error2#]; name=Error2{{$}}
77
- // CATCH1-DAG: Decl[Class]/CurrModule/TypeRelation[Convertible] : Error1[#Error1#]; name=Error1{{$}}
74
+ // CATCH1-DAG: Decl[Enum]/CurrModule: Error4[#Error4#]; name=Error4{{$}}
75
+ // CATCH1-DAG: Decl[Class]/CurrModule: Error3[#Error3#]; name=Error3{{$}}
76
+ // CATCH1-DAG: Decl[Class]/CurrModule: Error2[#Error2#]; name=Error2{{$}}
77
+ // CATCH1-DAG: Decl[Class]/CurrModule: Error1[#Error1#]; name=Error1{{$}}
78
78
// CATCH1-DAG: Keyword[let]/None: let{{; name=.+$}}
79
79
// CATCH1-DAG: Decl[Class]/CurrModule: NoneError1[#NoneError1#]; name=NoneError1{{$}}
80
80
// CATCH1-DAG: Decl[Class]/OtherModule[Foundation]/IsSystem: NSError[#NSError#]{{; name=.+$}}
@@ -147,14 +147,14 @@ func test006() {
147
147
} catch {
148
148
#^INSIDE_CATCH1 ^#
149
149
}
150
- // IMPLICIT_ERROR: Decl[LocalVar]/Local: error[#any Error #]; name=error
150
+ // IMPLICIT_ERROR: Decl[LocalVar]/Local: error[#Never #]; name=error
151
151
}
152
152
func test007( ) {
153
153
do {
154
154
} catch let e {
155
155
#^INSIDE_CATCH2 ^#
156
156
}
157
- // EXPLICIT_ERROR_E: Decl[LocalVar]/Local: e[#any Error #]; name=e
157
+ // EXPLICIT_ERROR_E: Decl[LocalVar]/Local: e[#Never #]; name=e
158
158
}
159
159
func test008( ) {
160
160
do {
@@ -170,7 +170,7 @@ func test009() {
170
170
}
171
171
172
172
// FIXME: we're getting parentheses around the type when it's unnamed...
173
- // EXPLICIT_ERROR_PAYLOAD_I: Decl[LocalVar]/Local: i[#(Int32) #]; name=i
173
+ // EXPLICIT_ERROR_PAYLOAD_I: Decl[LocalVar]/Local: i[#<<error type>> #]; name=i
174
174
}
175
175
func test010( ) {
176
176
do {
@@ -195,7 +195,7 @@ func test012() {
195
195
error. #^INSIDE_CATCH_ERR_DOT1^#
196
196
}
197
197
}
198
- // ERROR_DOT: Keyword[self]/CurrNominal: self[#any Error #]; name=self
198
+ // ERROR_DOT: Keyword[self]/CurrNominal: self[#Never #]; name=self
199
199
func test013( ) {
200
200
do {
201
201
} catch let e {
0 commit comments