blob: 77dc3620fc94f9db6bdbb52716720f1b8a08e8fa [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
func f<T! {
map() -> String {
return d.<d = b) {
protocol d {
}
}
}
var d {
A() -> String = g, f<S : Int = B<c: c(()() -> Any in
struct S : Array) {
}
}
let i(c) {
}
class A {
for ()-> {
}
protocol A : a