mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Diagnostic for miss-parsing actors for missing '{' and '}' would say
"class" instead of "actor". This patch fixes it.
13 lines
310 B
Swift
13 lines
310 B
Swift
// RUN: %target-typecheck-verify-swift -disable-availability-checking
|
|
|
|
// REQUIRES: concurrency
|
|
|
|
|
|
|
|
actor MyActor1 // expected-error {{expected '{' in actor}}
|
|
|
|
actor MyActor2 { // expected-note@:16 {{to match this opening '{'}}
|
|
init() {
|
|
}
|
|
func hello() { } // expected-error@+1 {{expected '}' in actor}}
|