File tree Expand file tree Collapse file tree 2 files changed +0
-18
lines changed
Expand file tree Collapse file tree 2 files changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -651,11 +651,6 @@ class alignas(1 << TypeAlignInBits) TypeBase {
651651 return getRecursiveProperties ().hasDependentMember ();
652652 }
653653
654- // / Check if this type is a valid type for the LHS of an assignment.
655- // / This mainly means hasLValueType(), but empty tuples and tuples of empty
656- // / tuples also qualify.
657- bool isAssignableType ();
658-
659654 // / isExistentialType - Determines whether this type is an existential type,
660655 // / whose real (runtime) type is unknown but which is known to conform to
661656 // / some set of protocols. Protocol and protocol-conformance types are
Original file line number Diff line number Diff line change @@ -543,19 +543,6 @@ bool TypeBase::isBool() {
543543 return false ;
544544}
545545
546-
547- bool TypeBase::isAssignableType () {
548- if (hasLValueType ()) return true ;
549- if (auto tuple = getAs<TupleType>()) {
550- for (auto eltType : tuple->getElementTypes ()) {
551- if (!eltType->isAssignableType ())
552- return false ;
553- }
554- return true ;
555- }
556- return false ;
557- }
558-
559546Type TypeBase::getRValueType () {
560547 // If the type is not an lvalue, this is a no-op.
561548 if (!hasLValueType ())
You can’t perform that action at this time.
0 commit comments