Files
swift-mirror/test/Parse/EOF/unfinished-for-at-eof.swift
2017-08-04 23:27:15 +09: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}}