Files
swift-mirror/test/Parse/actor.swift
Evan Wilde c61ae352b1 Fix miss-parse diagnostic to say "actor"
Diagnostic for miss-parsing actors for missing '{' and '}' would say
"class" instead of "actor". This patch fixes it.
2021-12-21 14:00:14 -08:00

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