1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172
|
// 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
class d<T where g: <T where : String {let a{
let : T.e
struct B<T where h: C {
var e(d func f:String{
func a{
private let f: NSObject {
let g c{() {
extension NSData{
class A {()enum S<B<A}c{ "
typealias A<T.e(String
protocol c
struct d:T>:A
struct d=c{ "\(){
{
{}
private let : NSObject {let a {
}
struct d<T where g: A<T where g: d a(d func a<T where : C {
struct B<T where g:A:A< B {
{
import Foundation
struct S<T {
func a
}struct B<T where g:A
func a{
struct c{let v: A {
struct c
struct S<T where g: {{
let f=e(d func a
var d<T where g:A:a< : NSObject {
let : C {"\(d func d=c
struct d: NSObject {
}
class d<T>){struct B<T where f: NSObject
struct c{ "
}
() > {
struct c : C {
enum e
{let f: A {
struct c
class A {{
class d=c{(String
extension NSData{"\() > {
}
struct c
func f: C {
class a
let c n
extension NSData{init{
}
}
case,
let a{class{let a {
func f{
extension NSData{}
("
let f:String
protocol a< : {
struct B<T where h: A
v: a{
var e, : C {protocol c
class A {
let : NSObject
let a
}
func b
deinit{
struct c
protocol c{ "
var d=c
extension NSData{
func f=e(String
}
class a
protocol a<T where g: C {
let a{
func d=e, : <T where : <T where
struct B<A<T where g: NSObject
deinit{
func b
func b
protocol a
func f: A {
extension D{(String
func d=c
let a {
typealias A<T where g: T>){let f{
v: NSObject
private let : <T where f: d func a
class d:String
func a{
}
let a {
func b
}c<T where I:T>:String{struct B{(String{(String{
let v: d a
class B< : T>){protocol A< B {
extension NSData{
let : <T where g:String{
{
func b
func a
func f=c
protocol c
private let a{() {
func b
}
let a{
deinit{
let a{
func f: A {(d a(d a<T where I:A:T>){
deinit{
extension D{
}c
func d:a
extension D{func a
let a {init{
struct B{let g c
}
println -
case,
}
let c {
func a(d a{
func a{() > {
}
}
struct A<T where I:String
struct B{
class B{(d func f: C {struct c
}c
() {
func f: C {
protocol c : d func f{let a<A< : NSObject
case,
struct c n
{struct c
let g c{
class a{
protocol c
enum e, : T>:String{func a
(d a{("
let f: <T where
let a {let a {
struct c n
func a<T where : NSObject
struct c
case,
struct S<T>){
}struct d<B{let a {class
func d<A:N{
func d:C{struct c{init{
struct c
import Foundation
case,
func d=e
struct S<T {
func d<T where : NSObject
case,
struct B<T where I:a
class B<T where
func f: <T>:C{class{
class
|