Skip to content

Commit bc20856

Browse files
committed
[Test] Add a test case for extension where clause with missing body
rdar://problem/66943328
1 parent 513fed7 commit bc20856

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/decl/ext/extensions.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,3 +349,10 @@ struct SR_10466<T> {
349349
extension SR_10466 where T == Never { // expected-note {{requirement specified as 'T' == 'Never' [with T = T]}}
350350
typealias A = Int
351351
}
352+
353+
#if true
354+
protocol Rdar66943328 {
355+
associatedtype Assoc
356+
}
357+
extension Rdar66943328 where Assoc == Int // expected-error {{expected '{' in extension}}
358+
#endif

0 commit comments

Comments
 (0)