Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/Resolver.cc

    rd286cf68 rcdb990a  
    207207                        Alternative & choice = winners.front();
    208208                        if ( findDeletedExpr( choice.expr ) ) {
    209                                 SemanticError( untyped->location, choice.expr, "Unique best alternative includes deleted identifier in " );
     209                                SemanticError( choice.expr, "Unique best alternative includes deleted identifier in " );
    210210                        }
    211211                        alt = std::move( choice );
     
    242242
    243243                static CastExpr untyped( nullptr ); // cast to void
    244                 untyped.location = expr->location;
    245244
    246245                // set up and resolve expression cast to void
     
    275274        void findSingleExpression( Expression *& untyped, Type * type, const SymTab::Indexer & indexer ) {
    276275                assert( untyped && type );
    277                 // transfer location to generated cast for error purposes
    278                 CodeLocation location = untyped->location;
    279276                untyped = new CastExpr( untyped, type );
    280                 untyped->location = location;
    281277                findSingleExpression( untyped, indexer );
    282278                removeExtraneousCast( untyped, indexer );
     
    582578
    583579                                                        // Make sure we don't widen any existing bindings
    584                                                         resultEnv.forbidWidening();
    585                                                        
     580                                                        for ( auto & i : resultEnv ) {
     581                                                                i.allowWidening = false;
     582                                                        }
     583
    586584                                                        // Find any unbound type variables
    587585                                                        resultEnv.extractOpenVars( openVars );
Note: See TracChangeset for help on using the changeset viewer.