blob: e11228e030365bb43d949d7f02385912ca7caaef [file] [log] [blame]
// 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
class k<g>: d {
init(f: g) {
l. d {
}
func b<d-> d { class d:b class b
protocol d : b { func b
func d(e: = { (g: h, f: h -> h) -> h in
}
}
class d<j : i, f : i where j.i == f> : e {
}
class d<j, f> {
}
protocol i {
}
protocol e {
}
protocol i : d { func d
b {
return { n n "\(}
c i<k : i> {
}
c i: i {
}
c e : l {
}
}
}
u _ = q() {
}
n $h: m.j) {
}
o m() -> String {
}
class d: c{ class func f {}
func e() {
}
func c<b:c