Files
swift-mirror/test/Parse/EOF/unfinished-for-at-eof.swift
Robert Widmann 0267384e11 Fixup SourceKit and Tests
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.
2019-10-30 15:09:14 -07:00

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}}