| // RUN: not %target-swift-frontend %s -parse |
| |
| // Distributed under the terms of the MIT license |
| // Test case submitted to project by https://github.com/practicalswift (practicalswift) |
| // Test case found by fuzzing |
| |
| protocol A { |
| typealias B |
| } |
| class C<D> { |
| init <A: A where A.B == D>(e: A.B) { |
| class c { |
| func b((Aprotocol b : a { |
| } |
| protocol c : a { |
| } |
| protocol d { |
| } |
| struct e : d { |
| } |
| func i<j : b, k : d where k.f == j> (n: k) { |
| } |
| func i<l : d where l.f == c> (n: l) { |
| } |
| func a(b: Int = 0) { |
| } |
| let c = a |
| struct c<d : SequenceType> { |
| } |
| func a<d>() -> [c<d>] { |