Skip to content

Commit b2ec5b9

Browse files
committed
[Test] Update type_checker_crashers_fixed/rdar50869732.swift with missing
conformance diagnostics.
1 parent 911bcee commit b2ec5b9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

validation-test/Sema/type_checker_crashers_fixed/rdar50869732.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ struct Generic<T> {
1010

1111
@_functionBuilder
1212
struct Builder {
13-
static func buildBlock<C0, C1>(_ c0: C0, _ c1: C1)
13+
static func buildBlock<C0, C1>(_ c0: C0, _ c1: C1) // expected-note {{where 'C0' = 'Empty'}} expected-note {{where 'C1' = 'Test<Empty>'}}
1414
-> Generic<(C0, C1)> where C0 : P, C1 : P {
1515
return Generic((c0, c1))
1616
}
@@ -24,11 +24,13 @@ struct Empty {
2424
init() {}
2525
}
2626

27-
struct Test<T> where T : P {
27+
struct Test<T> where T : P { // expected-note {{where 'T' = 'Empty'}}
2828
init(@Builder _: () -> T) {}
2929
}
3030

3131
let x = G {
32+
// expected-error@-1 {{static method 'buildBlock' requires that 'Empty' conform to 'P'}}
33+
// expected-error@-2 {{static method 'buildBlock' requires that 'Test<Empty>' conform to 'P'}}
3234
Empty()
33-
Test { <#code#> } // expected-error {{editor placeholder in source file}}
35+
Test { Empty() } // expected-error {{generic struct 'Test' requires that 'Empty' conform to 'P'}}
3436
}

0 commit comments

Comments
 (0)