mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[AST] Explicitly track things marked __owned.
This commit is contained in:
@@ -1954,7 +1954,7 @@ namespace {
|
||||
if (auto type = param->getTypeLoc().getType()) {
|
||||
// FIXME: Need a better locator for a pattern as a base.
|
||||
Type openedType = CS.openUnboundGenericType(type, locator);
|
||||
assert(!param->isLet() || !openedType->is<InOutType>());
|
||||
assert(!param->isImmutable() || !openedType->is<InOutType>());
|
||||
param->setType(openedType->getInOutObjectType());
|
||||
param->setInterfaceType(openedType->getInOutObjectType());
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user