mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
15 lines
715 B
Swift
15 lines
715 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend-emit-module -emit-module-path %t/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems -disable-availability-checking %S/Inputs/FakeDistributedActorSystems.swift
|
|
// RUN: %target-typecheck-verify-swift -disable-availability-checking -I %t
|
|
// REQUIRES: concurrency
|
|
// REQUIRES: distributed
|
|
|
|
import Distributed
|
|
import FakeDistributedActorSystems
|
|
|
|
typealias DefaultDistributedActorSystem = FakeActorSystem
|
|
|
|
distributed actor DA: Comparable {}
|
|
// expected-error@-1 {{type 'DA' does not conform to protocol 'Comparable'}}
|
|
// expected-note@-2 {{automatic synthesis of 'Comparable' is not supported for distributed actor declarations}}
|