| // 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 |
| if true {{} k. " |
| if true{ |
| class d<T {let:a{} |
| g {class B<T B:C{let f=e() |
| typealias e |
| enum S<T> : A? |
| func a== f=Dictionary<T.E |
| } |
| class c{struct B<T{ |
| class b<T{struct Q<T B : T{ |
| class c<a |
| typealias () |
| struct B<a:a{ |
| } |
| class A{let a{} k. " |
| } |
| class A<T{} |
| class B<T { |
| struct B |
| class A{var f |
| " |
| class B<T{ |
| class A{{ |
| func f |
| }struct c<T B:C{let f=e() |
| } |
| func g:a{ |
| import a:a{ |
| } |
| enum S<T a{ |
| class A{ |
| func p{ |
| class B<H : T.E |
| struct c<T B :a{ |
| class B< E {} |
| class A{let ad{} |
| let T h.h =b() |
| 1 |
| typealias () |
| let T B :b: AsB |
| class A? f{ |
| typeal |