mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Code completion: don't adjust implicitly unwrapped optional types to normal
optionals rdar://17732126 Swift SVN r20212
This commit is contained in:
@@ -175,12 +175,6 @@ public:
|
||||
getLastChunk().setIsAnnotation();
|
||||
}
|
||||
|
||||
// Print non-inout '@unchecked' optional arguments as normal optionals,
|
||||
// because the difference is not important for the caller.
|
||||
if (Type ObjectType = Ty->getImplicitlyUnwrappedOptionalObjectType()) {
|
||||
Ty = OptionalType::get(ObjectType);
|
||||
}
|
||||
|
||||
// 'inout' arguments are printed specially.
|
||||
if (auto *IOT = Ty->getAs<InOutType>()) {
|
||||
addChunkWithTextNoCopy(
|
||||
|
||||
Reference in New Issue
Block a user