mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[NFC] Audit some DeclName➡️DeclNameRef conversions
Adds comments explaining why these conversions aren’t lossy.
This commit is contained in:
@@ -8627,6 +8627,9 @@ ConstraintSystem::simplifyConstructionConstraint(
|
||||
// variable T. T2 is the result type provided via the construction
|
||||
// constraint itself.
|
||||
addValueMemberConstraint(MetatypeType::get(valueType, getASTContext()),
|
||||
// OK: simplifyConstructionConstraint() is only used
|
||||
// for `T(...)` init calls, not `T.init(...)` calls,
|
||||
// so there's no module selector on `init`.
|
||||
DeclNameRef::createConstructor(),
|
||||
memberType,
|
||||
useDC, functionRefInfo,
|
||||
|
||||
Reference in New Issue
Block a user