Code completion: don't adjust implicitly unwrapped optional types to normal

optionals

rdar://17732126


Swift SVN r20212
This commit is contained in:
Dmitri Hrybenko
2014-07-19 18:41:41 +00:00
parent 26376f0854
commit 21dd66b6cc
7 changed files with 17 additions and 23 deletions

View File

@@ -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(