@@ -1814,20 +1814,20 @@ namespace {
1814
1814
// This can occur in code that does something like: 'type(of: x).a' where
1815
1815
// 'a' is the static value generic member.
1816
1816
if (auto gp = dyn_cast<GenericTypeParamDecl>(member)) {
1817
- if (gp->isValue ()) {
1818
- auto refType = adjustedOpenedType;
1819
- auto ref = TypeValueExpr::createForDecl (memberLoc, gp, dc) ;
1820
- cs. setType (ref, refType );
1821
-
1822
- auto gpTy = gp-> getDeclaredInterfaceType ();
1823
- auto subs = baseTy-> getContextSubstitutionMap ();
1824
- ref-> setParamType (gpTy. subst (subs) );
1825
-
1826
- auto result = new (ctx) DotSyntaxBaseIgnoredExpr (base, dotLoc, ref,
1827
- refType);
1828
- cs. setType (result, refType);
1829
- return result;
1830
- }
1817
+ ASSERT (gp->isValue ());
1818
+
1819
+ auto refType = adjustedOpenedType ;
1820
+ auto ref = TypeValueExpr::createForDecl (memberLoc, gp, dc );
1821
+ cs. setType (ref, refType);
1822
+
1823
+ auto gpTy = gp-> getDeclaredInterfaceType ();
1824
+ auto subs = baseTy-> getContextSubstitutionMap ( );
1825
+ ref-> setParamType (gpTy. subst (subs));
1826
+
1827
+ auto result = new (ctx) DotSyntaxBaseIgnoredExpr (base, dotLoc, ref,
1828
+ refType);
1829
+ cs. setType ( result, refType) ;
1830
+ return result;
1831
1831
}
1832
1832
1833
1833
// If we're referring to a member type, it's just a type
0 commit comments