// 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 (x) -> { } class b class A { class a(T) -> String { func c String { } } class A { protocol A { return ""foo" } } func g } class b: end) protocol b = { } i([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 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 ("".h>Bool) } } } self.Type class B == D> S(bytes: T func g()(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. A { } let foo as [[])() } } protocol b { b() -> U) -> Bool { } } func b: c, c: NSManagedObject { } } struct Q Bool { get struct c, U) -> Any, e == { func i() -> U { typealias d: P { } } self.endIndex - range.f == { } let i: c 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 Any, Any) { self.E } class func c, x } } } var a: S(bytes: A>(c(b> A { for () } extension Array { func a Any] in func f() -> : T : d = { } } } } } self.e = { typealias e = T) { func a] = b.a(" let i: B() fu