mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Patch up all the places that are making a syntactic judgement about the isInvalid() bit in a ValueDecl. They may continue to use that query, but most guard themselves on whether the interface type has been set.
9 lines
381 B
Swift
9 lines
381 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
|
|
func fuzz() { for var H
|
|
// expected-error@-1{{expected 'in' after for-each pattern}}
|
|
// expected-error@-2{{expected Sequence expression for for-each loop}}
|
|
// expected-error@-3{{expected '{' to start the body of for-each loop}}
|
|
// expected-note@-4 {{to match this opening '{'}}
|
|
// expected-error@+1{{expected '}' at end of brace statement}}
|