File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -1921,18 +1921,17 @@ namespace {
1921
1921
base->setImplicit ();
1922
1922
}
1923
1923
1924
- const auto hasDynamicSelf =
1925
- varDecl->getValueInterfaceType ()->hasDynamicSelfType ();
1924
+ const auto hasDynamicSelf = refTy->hasDynamicSelfType ();
1926
1925
1927
1926
auto memberRefExpr
1928
1927
= new (ctx) MemberRefExpr (base, dotLoc, memberRef,
1929
1928
memberLoc, Implicit, semantics);
1930
1929
memberRefExpr->setIsSuper (isSuper);
1931
1930
1932
1931
if (hasDynamicSelf) {
1933
- refTy = refTy->replaceCovariantResultType (containerTy, 1 );
1934
- adjustedRefTy = adjustedRefTy->replaceCovariantResultType (
1935
- containerTy, 1 );
1932
+ refTy = refTy->replaceDynamicSelfType (containerTy);
1933
+ adjustedRefTy = adjustedRefTy->replaceDynamicSelfType (
1934
+ containerTy);
1936
1935
}
1937
1936
1938
1937
cs.setType (memberRefExpr, resultType (refTy));
You can’t perform that action at this time.
0 commit comments