// 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
return {
protocol c in o h : T> <T>() -> x = d: C {
}
func f: b(self.C(m> Bool {
func g>Bool) {
}
}
func a<T! {
}
let t, object2: Int = { class u
typealias F = {
protocol P {
}
for c {
h = {
}
struct f<A.h : (true }
class func d: A>((("\() {
}
}
}
}
func d<T where B {
protocol A {
class b<U -> String {
func j> .Type) -func a<n {
}
}
var b in a {
}
func a<T : a
