blob: 45a14e62d8f2741d171ad8afe84cdb85308c426a [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 b<d {
enum b {
func c
var _ = c
}
}
func q(v: h) -> <r>(() -> r) -> h {
}
struct e<r> {
}
protocol p {
}
protocol m : p {
}
protocol v : p {
}
protocol m {
}
func s<s : m, v : m u v.v == s> (m: v) {
}
func s<v : m u v.v == v> (m: v) func f class func b() {
struct c {
}
protocol e {
}
func a(b: Int = 0) {
}
func b(c) -> <d>(() -> d) {
}
class A {
}
}
im D : C {
typealias Fr e: Int -> Int = {
}
let d: Int = { ce)
func b<d-> d { class d:b class b
st.C == E> {s func c() { }
}
func i(f: g) -> <j>(() -> j) -> g { func g
k, l {
typealias l = m<k<m>, f>
}