1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168
|
// This source file is part of the Swift.org open source project
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
// RUN: not %target-swift-frontend %s -typecheck
g..startIndex, AnyObject)
import Foundation
import Foundation
enum b {
}
func i: (x) -> String {
convenience init(c
}
public var b)
protocol A {
protocol B = g: NSObject {
}
func b: $0
self.startIndex)
}
case C: l) -> {
}
typealias B = a<c({
}
}
class func c<b[T]({
typealias E
for b = f<d()):
var a: d) {
for ([0x31] = ""ab"
var a<Int], AnyObject> (x) -> {
}
class b
class A {
class a(T) -> String {
func c<B : A: A, T> String {
}
}
class A {
protocol A {
return ""foo"
}
}
func g
}
class b: end)
protocol b = {
}
i<d {
class a<T>([B
}
case c, 3] = []
typealias e : Any, b = nil
}
struct e {
class A.b where I.c: a {
func c() -> Any in
}
class C(T>("
struct c(_ c<h == d
return !.Type) -> Any in
}
struct S : d where H) -> T>
}
}
func c
enum A {
for b {
i> {
convenience init(c, range.e : a {
typealias b {
enum A where d
class func b, let i<T.e> ("".h>Bool)
}
}
}
self.Type
class B == D> S(bytes: T
func g<e, b {
}
class A {
}
case A<T>()(x: A.c where T> (A> {
}
}
return "ab")
typealias e = {
typealias C {
func f(start: ([c) in return b, U>() ->(b.f == a(start, object2: T) -> String {
func g.count]]("")?
}
protocol A : T> Any) -> V, let end = .E == ""A.<T : d where A.c {
}
func a"
}
protocol A {
func e: ()
protocol a {
}
class A<I : Int -> A {
}
let foo as [[])()
}
}
protocol b {
b() -> U) -> Bool {
}
}
func b: c, c: NSManagedObject {
}
}
struct Q<Y> Bool {
get
struct c, U) -> Any, e == {
func i() -> U {
typealias d: P {
}
}
self.endIndex - range.f == { }
let i: c<T: start, i> T {
func a(""
return [Int
struct e = e!)
return { _, g : C {
map()
protocol a = {
extension NSData {
class C("[1].f = nil
convenience init(x) {
if true }
let v: b
}
}
enum A {
map(x: A : d where B = e: b {
}
}
import Foundation
d: A<T> Any, Any) {
self.E
}
class func c, x }
}
}
var a: S(bytes: A>(c<b
extension String {
class b()
struct c {
typealias B<T>(b> A {
for ()
}
extension Array {
func a<T> Any] in
func f() -> : T : d = { }
}
}
}
}
self.e = {
typealias e = T) {
func a<T>] = b.a("
let i: B<T.B : B? = b: c: A, AnyObject, y)
}
struct B<T>()
fu
|