// 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<g>() -> (g, g -> g) -> g {
d j d.i = {
}
{
g) {
h  }
}
protocol f {
}
class d: f{  class func i {}
protocol A {
func b(b: X.Type) {
}
init(foo: T) {
}
func a<d>() -> [c<d>] {
}
protocol a {
}
}
class b<h, i> {
}
protocol c {
}
class A: A {
}
class B : C {
}
func ^(a: Boolean, Bool) -> Bool {
}
class a<f : b, g : b where f.d == g> {
}
protocol b {
}
struct c<h : b> : b {
}
func f<T : Boolean>(b: T) {
}
protocol A {
}
class C<D> {
init <A: A where A.B == D>(e: A.B) {
}
}
protocol A {
}
class B {
func d() -> String {
}
}
class C: B, A {
override func d() -> String {
}
func c() -> String {
}
}
func e<T where T: A, T: B>(t: T) {
}
func i(c: () -> ()) {
}
class a {
var _ = i() {
}
}
enum S<T> {
}
class a {
}
protocol A {
}
struct B : A {
}
struct C<D, E: A where D.C == E> {
}
protocol b {
}
struct c {
func e() {
}
}
func c<d {
enum c {
}
}
protocol a {
}
class b: a {
}
(b() as a).dyprefix(with: String) -> <T>(() -> T) -> String {
}
func a<T>() {
enum b {
}
}
protocol c : b { func b
