File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -699,8 +699,7 @@ FuncDecl *GetDistributedThunkRequest::evaluate(
699
699
// Force type-checking the original function, so we can avoid synthesizing
700
700
// the thunks (which would have many of the same errors, if they are caused
701
701
// by a bad source function signature, e.g. missing conformances etc).
702
- (void ) TypeChecker::typeCheckDecl (distributedTarget);
703
- if (distributedTarget->getDiags ().hadAnyError ()) {
702
+ if (distributedTarget->getInterfaceType ()->hasError ()) {
704
703
return nullptr ;
705
704
}
706
705
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-swift-frontend-emit-module -emit-module-path %t/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems -disable-availability-checking %S/Inputs/FakeDistributedActorSystems.swift
3
- // RUN: %target-swift-frontend -typecheck -verify -disable-availability-checking -I %t 2>&1 %s
3
+ // RUN: %target-swift-frontend -typecheck -verify -verify-ignore-unknown - disable-availability-checking -I %t 2>&1 %s
4
4
// REQUIRES: concurrency
5
5
// REQUIRES: distributed
6
6
@@ -46,7 +46,6 @@ distributed actor DistributedActor_1 {
46
46
distributed class func distributedClass( ) { }
47
47
// expected-error@-1{{class methods are only allowed within classes; use 'static' to declare a static method}}
48
48
// expected-error@-2{{'distributed' method cannot be 'static'}}
49
- // expected-error@-3{{class methods are only allowed within classes; use 'static' to declare a static method}}
50
49
51
50
func hello( ) { } // expected-note{{distributed actor-isolated instance method 'hello()' declared here}}
52
51
func helloAsync( ) async { } // expected-note{{distributed actor-isolated instance method 'helloAsync()' declared here}}
You can’t perform that action at this time.
0 commit comments