| // 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 |
| protocol A { |
| typealias B |
| func b(B) |
| } |
| struct X<Y> : A { |
| func b(b: X.Type) { |
| } |
| } |
| protocol A { |
| typealias E |
| } |
| struct B<T : A> { |
| let h: T |
| let i: T.E |
| } |
| protocol C { |
| typealias F |
| func g<T where T.E == F>(f: B<T>) |
| } |
| struct D : C { |
| typealias F = Int |
| func g<T where T.E == F>(f: B<T>) { |
| } |
| } |
| func ^(a: Boolean, Bool) -> Bool { |
| return !(a) |
| } |
| a) |
| func a<b:a |
| struct A<T> { |
| let a: [( th |
| } |
| func prefix(with: String) x1 ool !(a) |
| } |
| func prefix(with: Strin) -> <T>(() -> T) in\ |
| import Foundation |
| class Foo<T>: NSObject { |
| var f<g>() -> (es: Int = { x, f in |
| A.B == D>(e: A.B) { |
| } |
| } |
| protocol a : a { |
| } |
| class a { |
| typealias b = b |
| } |
| func prefi su1ype, ere Optional<T> return !(a) |
| } |