blob: 55e4d02cd5a101bf871950a3794a7114c633df16 [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
struct Q<f = {
protocol a {
class A {
func b: Sequence where H) -> Int -> {
}
}
func c<T: c] = f: Collection where I.C) {
protocol A {
}
func call() {
protocol d where k) {
class A<h == Swift.B<S {
class c in x }
typealias d = {
}
}
}
}
}
self, (f<1 {
0] = g<T>("
typealias B.init(a)