mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This fixes compiler_crashers tests that use the ObjC interface on iOS hardware SDKs. Swift SVN r23458
71 lines
1.0 KiB
Swift
71 lines
1.0 KiB
Swift
// RUN: not %target-swift-frontend %s -parse
|
|
|
|
// Distributed under the terms of the MIT license
|
|
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
|
|
// Test case found by fuzzing
|
|
|
|
class j {
|
|
func y((Any, j))(v: (Any, AnyObject)) {
|
|
y(v)
|
|
}
|
|
}
|
|
func w(j: () -> ()) {
|
|
}
|
|
class v {
|
|
l _ = w() {
|
|
}
|
|
}
|
|
({})
|
|
func v<x>() -> (x, x -> x) -> x {
|
|
l y j s<q : l, y: l m y.n == q.n> {
|
|
}
|
|
o l {
|
|
u n
|
|
}
|
|
y q<x> {
|
|
s w(x, () -> ())
|
|
}
|
|
o n {
|
|
func j() p
|
|
}
|
|
class r {
|
|
func s() -> p {
|
|
t ""
|
|
}
|
|
}
|
|
class w: r, n {
|
|
k v: ))] = []
|
|
}
|
|
class n<x : n>
|
|
func a<d>() -> [c{ enum b {
|
|
case c
|
|
func d<b: SequenceType, e where Optional<e> == b.Generator.Element>(c : b) -> e? {
|
|
for (mx : e?) in c {
|
|
}
|
|
}
|
|
protocol A {
|
|
func c() -> String
|
|
}
|
|
class B {
|
|
func d() -> String {
|
|
return ""
|
|
}
|
|
}
|
|
class C: B, A {
|
|
override func d() -> String {
|
|
return ""
|
|
}
|
|
func c() -> String {
|
|
return ""
|
|
}
|
|
}
|
|
func e<T whe(a)
|
|
}
|
|
protocol a {
|
|
}
|
|
protocol b : a {
|
|
}
|
|
protocol c : a {
|
|
}
|
|
protocol d {
|