mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Reflect failability of an initializer in the optionality of its result type.
Don't verify this for the Optional and ImplicitlyUnwrappedOptional types. Swift SVN r21293
This commit is contained in:
@@ -3160,7 +3160,7 @@ retry:
|
||||
auto func2 = cast<FunctionType>(desugar2);
|
||||
|
||||
assert(func1->getResult()->is<TypeVariableType>() &&
|
||||
"the output of func1 is a free variable by construction");
|
||||
"the output of funct1 is a free variable by construction");
|
||||
|
||||
// If this application is part of an operator, then we allow an implicit
|
||||
// lvalue to be compatible with inout arguments. This is used by
|
||||
|
||||
Reference in New Issue
Block a user