| // 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 c<T where g:A{ |
| enum b{ |
| func a{let:{ |
| if a |
| {enum S{class A{ |
| struct c{func a{ |
| var:{ |
| var:{ |
| func b{ |
| class a{class B{func b{{ |
| let A{ |
| var:{ |
| {class a{ |
| let b{{enum b{enum b{{{ |
| }} |
| struct d{ |
| struct B{{{} |
| }class B{class A{ |
| struct B{{ |
| { |
| {}}} |
| protocol a{struct B{ |
| let b{let a{ |
| enum b{func b{ |
| {{ |
| func a{ |
| var:{ |
| struct B{struct B{ |
| func b{ |
| func b{var:{class B{let:{ |
| func f{{ |
| a |
| c |