blob: c34eac9278e1de8a04d21cb1639c97b5960552e8 [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
var d {
func a() -> {
class A {
}
func a(f<h == d: T>()
let foo as String) {
protocol C {
func a<I : a {
var a(")(self)
}
protocol B : Sequence> Any, range.C> V {
struct c(a: T> U) {
}
class B {
var b: [c<T>?) {
}
}
case .C<B : b(b() {
case C("[Byte]()
struct B<T where B {
typealias b = Swift.init(array: a {
return b: P {
case b {
}
}
typealias F = c] {
}
class B : d = {
class A? {
print() -> {
func f<T> Int = [self[T : d {
}
class A {
struct Q<T> <T) {
}({
enum S(bytes: Hashable> (T: T] {
}
typealias b {
i> Any) {
class func b<1 {
i<T) -> [Any, let b {
return "