// 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 func f: String { extension A where I) { } var d { func d.R protocol c : a { class func a) protocol d { } } extension NSSet { } static let c] = { } } var f: b[0x31] as Boolean, range.C: String { class A { } return "".Type) -> { } class A { let c { return [Int) { let n1: T -> { return { class A, f Any) { let b { func g([0 protocol d : T, e(A.c(Any, T>() { c, self.init(f.c { typealias F>(f(i