Changes in src/ResolvExpr/Resolver.cc [cdb990a:d286cf68]
- File:
-
- 1 edited
-
src/ResolvExpr/Resolver.cc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/Resolver.cc
rcdb990a rd286cf68 207 207 Alternative & choice = winners.front(); 208 208 if ( findDeletedExpr( choice.expr ) ) { 209 SemanticError( choice.expr, "Unique best alternative includes deleted identifier in " );209 SemanticError( untyped->location, choice.expr, "Unique best alternative includes deleted identifier in " ); 210 210 } 211 211 alt = std::move( choice ); … … 242 242 243 243 static CastExpr untyped( nullptr ); // cast to void 244 untyped.location = expr->location; 244 245 245 246 // set up and resolve expression cast to void … … 274 275 void findSingleExpression( Expression *& untyped, Type * type, const SymTab::Indexer & indexer ) { 275 276 assert( untyped && type ); 277 // transfer location to generated cast for error purposes 278 CodeLocation location = untyped->location; 276 279 untyped = new CastExpr( untyped, type ); 280 untyped->location = location; 277 281 findSingleExpression( untyped, indexer ); 278 282 removeExtraneousCast( untyped, indexer ); … … 578 582 579 583 // Make sure we don't widen any existing bindings 580 for ( auto & i : resultEnv ) { 581 i.allowWidening = false; 582 } 583 584 resultEnv.forbidWidening(); 585 584 586 // Find any unbound type variables 585 587 resultEnv.extractOpenVars( openVars );
Note:
See TracChangeset
for help on using the changeset viewer.