84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
-
+
|
// the called function.
auto savedRHSNamespaceIndex = tcc.RHSNamespaceIndex();
tcc.setRHSNamespaceIndex( tcc.newNamespaceIndex() );
auto oldValueRequired = tcc.isValueResolutionRequired();
tcc.setValueResolutionRequired( false );
for( auto&& [s, tcc] : TypeCheckVec( callPat, rhs, tcc ) )
for( auto&& [s, tcc] : TypeCheck( callPat, rhs, tcc ) )
{
// Restore the namespace
tcc.setRHSNamespaceIndex( savedRHSNamespaceIndex );
tcc.setValueResolutionRequired( oldValueRequired );
// We need to unify the result with a hole named after the decl. However, since both sides of
// this unification orignally appeared on the LHS, we need to setup RHS to alias the LHS namespace for this.
|