Skip to content

Commit 911bcee

Browse files
committed
[Test] Update compiler_crashers_2_fixed/0196-rdar48937223.swift with new
missing conformance diagnostics.
1 parent 85f3679 commit 911bcee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

validation-test/compiler_crashers_2_fixed/0196-rdar48937223.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
protocol P {}
44

5-
func fn<T, U: P>(_ arg1: T, arg2: (T) -> U) {}
5+
func fn<T, U: P>(_ arg1: T, arg2: (T) -> U) {} // expected-note {{where 'U' = '()'}}
66

77
func test(str: String) {
8-
fn(str) { arg in
8+
fn(str) { arg in // expected-error {{global function 'fn(_:arg2:)' requires that '()' conform to 'P'}}
99
<#FOO#> // expected-error {{editor placeholder in source file}}
1010
}
1111
}

0 commit comments

Comments
 (0)