mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Distributed] adjust test to pass with less accurate diagnostics; while we work on getting them back
This commit is contained in:
committed by
Pavel Yaskevich
parent
ba143560c1
commit
0caf03d63f
@@ -1337,11 +1337,6 @@ FuncDecl *VarDecl::getDistributedThunk() const {
|
||||
if (!isDistributed())
|
||||
return nullptr;
|
||||
|
||||
// Only get-only 'distributed' computed properties are considered valid.
|
||||
if (isStatic() || isLet() || hasStorageOrWrapsStorage() ||
|
||||
getWriteImpl() != swift::WriteImplKind::Immutable)
|
||||
return nullptr;
|
||||
|
||||
auto mutableThis = const_cast<VarDecl *>(this);
|
||||
return evaluateOrDefault(getASTContext().evaluator,
|
||||
GetDistributedThunkRequest{mutableThis}, nullptr);
|
||||
|
||||
Reference in New Issue
Block a user