// 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 =b ($0 if true{struct Q ($0 protocol B:a{ class A{typealias f func g:B func a! class b } let a struct c let a=class a {class S:B{enum B func g:T>:B:B{enum b{class c protocol A{ let a{ struct B{ class b protocol B if true{protocol a{ class c class b:d where H : Boole struct c } if true{func i( class A }class B case c struct Q< func a func^(a! struct c< struct c struct Q{enum B (a{ struct c:b<> protocol B (f } if true{ struct Q