mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Formerly we stopped type checking a PatternBindingDecl when it was marked as invalid. This prevented semantic analysis from doing things like expanding "stored" properties in protocols into computed properties with getters and setter, causing downstream problems. Stop doing this, and instead do a bit of work to silence the downstream errors in a more narrow way.
8 lines
269 B
Swift
8 lines
269 B
Swift
// RUN: not %target-swift-frontend %s -parse
|
|
|
|
// Distributed under the terms of the MIT license
|
|
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
|
|
// Test case found by fuzzing
|
|
|
|
protocol A{let i:Bool,b}let a{struct S<>:A{let i:Bool
|