| // 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 |
| struct B<T where f=B{ |
| enum S{ |
| struct B<T |
| var f=B{ |
| func a{var b{ |
| struct B{ |
| class A{ |
| class b{ |
| func b{ |
| {struct Q{let a{var a{ |
| case |
| s{class A{var: |