Files
swift-mirror/validation-test/compiler_crashers/0323-swift-apply-generic-protocol.swift
Chris Willmore 513b05c283 compiler_crashers: Use %target-swift-frontend instead of %swift -sdk %sdk
This fixes compiler_crashers tests that use the ObjC interface on
iOS hardware SDKs.

Swift SVN r23458
2014-11-20 00:32:59 +00:00

16 lines
422 B
Swift

// RUN: %target-swift-frontend %s -emit-sil -verify
// Distributed under the terms of the MIT license
// Test case submitted to project by http://github.com/valfer (Valerio Ferrucci)
protocol C {
class func c(o: AnyObject) -> Self?
}
func d<A,B>(a : A, f : A -> B) -> B {
} // expected-error {{missing return in a function expected to return 'B'}}
class D<A:C> {
func e(o: AnyObject) {
d(o, A.c)
}
}