Skip to content

Commit 684e660

Browse files
committed
remove -verify mode from a validation test, and add its parens.
1 parent 55a3f53 commit 684e660

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: validation-test/compiler_crashers_fixed/00323-swift-apply-generic-protocol.swift

+4-3
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@
66
// See http://swift.org/LICENSE.txt for license information
77
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
88

9-
// RUN: %target-swift-frontend %s -emit-sil -verify
9+
// RUN: %target-swift-frontend %s -emit-sil
1010

1111
// Issue found by http://github.com/valfer (Valerio Ferrucci)
1212

1313
protocol C {
1414
static func c(o: AnyObject) -> Self?
1515
}
16-
func d<A,B>(_ a : A, _ f : A -> B) -> B {
17-
} // expected-error {{missing return in a function expected to return 'B'}}
16+
func d<A,B>(_ a : A, _ f : (A) -> B) -> B {
17+
preconditionFailure()
18+
}
1819
class D<A:C> {
1920
func e(o: AnyObject) {
2021
d(o, A.c)

0 commit comments

Comments
 (0)