blob: 1780c43fa8bde4615924a7e7f0f99e5ccf738648 [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 j<l : o> {
func a<l>() -> [j<l>] {
l j l.n = {
}
{
l) {
n }
}
protocol f {
}
func a<i>() {
b b {
}
class a<f : b, l : b m f.l == l> {
typealias k = a<j<n>, l>
var m: Int -> Int = {
o: Int = { d, l f
}(k, m)
class l {
}
l func d() -> f {
}
}
protocol l : f { func f
class k {
func l((Any, k))(m }
}
func j<f: l: e ->