Skip to content

Commit ca2a2e7

Browse files
committed
Update mutate accessor's ResultTypeRequest
1 parent c9a68d1 commit ca2a2e7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Sema/TypeCheckDecl.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2060,8 +2060,7 @@ ResultTypeRequest::evaluate(Evaluator &evaluator, ValueDecl *decl) const {
20602060
return TupleType::getEmpty(ctx);
20612061

20622062
case AccessorKind::Mutate:
2063-
// TODO: Temporary result representation for mutate accessors.
2064-
return InOutType::get(storage->getValueInterfaceType());
2063+
return storage->getValueInterfaceType();
20652064

20662065
// Addressor result types can get complicated because of the owner.
20672066
case AccessorKind::Address:

0 commit comments

Comments
 (0)