Changeset 46da46b for src/GenPoly
- Timestamp:
- May 2, 2023, 3:44:31 AM (23 months ago)
- Branches:
- ast-experimental, master
- Children:
- 0c840fc
- Parents:
- 1ab773e0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/SpecializeNew.cpp
r1ab773e0 r46da46b 112 112 using namespace ResolvExpr; 113 113 ast::OpenVarSet openVars, closedVars; 114 ast::AssertionSet need, have; 115 findOpenVars( formalType, openVars, closedVars, need, have, FirstClosed ); 116 findOpenVars( actualType, openVars, closedVars, need, have, FirstOpen ); 114 ast::AssertionSet need, have; // unused 115 ast::TypeEnvironment env; // unused 116 // findOpenVars( formalType, openVars, closedVars, need, have, FirstClosed ); 117 findOpenVars( actualType, openVars, closedVars, need, have, env, FirstOpen ); 117 118 for ( const ast::OpenVarSet::value_type & openVar : openVars ) { 118 119 const ast::Type * boundType = subs->lookup( openVar.first ); … … 124 125 if ( closedVars.find( *inst ) == closedVars.end() ) { 125 126 return true; 127 } 128 else { 129 assertf(false, "closed: %s", inst->name.c_str()); 126 130 } 127 131 // Otherwise, the variable is bound to a concrete type.
Note: See TracChangeset
for help on using the changeset viewer.