// 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<T](v: T>(b: A")
print() {
protocol P {
struct S {
}
}
class A {
deinit {
func f, f: AnyObject) -> S<Q<Q<c: c: T> {
protocol a {
class B : A {
protocol A {
}
}
protocol a {
func g: NSObject {
class func a(t: Int = T.init() -> T -> S<T>) -> Void>) -> S<T>(g(n: B<T>(""\()
}
}
}
typealias R = {
let i: P {
}
var d where T: H.c : P {
}
class func compose<A? {
}
}
var b: a {
}
static let h = c() -> {
}
}
struct c : Ar
