mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Update test to remove extraneous diagnostic
This commit is contained in:
@@ -19,7 +19,7 @@ struct CS: ~Copyable {
|
||||
}
|
||||
|
||||
struct DS: ~Copyable {
|
||||
nonisolated deinit {} // expected-error {{only classes and actors can have isolated deinit}}
|
||||
nonisolated deinit {}
|
||||
}
|
||||
|
||||
struct ES: ~Copyable {
|
||||
@@ -47,7 +47,7 @@ enum CE: ~Copyable {
|
||||
enum DE: ~Copyable {
|
||||
case dummy
|
||||
// expected-error@+1 {{deinitializers are not yet supported on noncopyable enums}}
|
||||
nonisolated deinit {} // expected-error {{only classes and actors can have isolated deinit}}
|
||||
nonisolated deinit {}
|
||||
}
|
||||
|
||||
enum EE: ~Copyable {
|
||||
|
||||
Reference in New Issue
Block a user